[Kimchi-devel] [PATCH] [Wok] Fix advanced log search by time
Lucio Correia
luciojhc at linux.vnet.ibm.com
Fri May 20 20:59:12 UTC 2016
Reviewed-By: Lucio Correia <luciojhc at linux.vnet.ibm.com>
On 20-05-2016 13:01, Jose Ricardo Ziviani wrote:
> - Backend does not allow log search by time, giving an error
> WOKLOG0001E. This commit fixes this issue by including the
> time field in the list of FILTER_FIELDS.
>
> Signed-off-by: Jose Ricardo Ziviani <joserz at linux.vnet.ibm.com>
> ---
> src/wok/reqlogger.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/wok/reqlogger.py b/src/wok/reqlogger.py
> index 1145dbd..b309d8f 100644
> --- a/src/wok/reqlogger.py
> +++ b/src/wok/reqlogger.py
> @@ -33,7 +33,7 @@ from wok.utils import ascii_dict, remove_old_files
>
>
> # Log search setup
> -FILTER_FIELDS = ['app', 'date', 'download', 'req', 'user']
> +FILTER_FIELDS = ['app', 'date', 'download', 'req', 'user', 'time']
> LOG_DOWNLOAD_URI = "/data/logs/%s"
> LOG_DOWNLOAD_TIMEOUT = 6
> LOG_FORMAT = "[%(date)s %(time)s] %(req)-6s %(app)-11s %(user)s: %(message)s\n"
>
--
Lucio Correia
Software Engineer
IBM LTC Brazil
More information about the Kimchi-devel
mailing list