[Kimchi-devel] [PATCH] [Wok] Fix advanced log search by time

Jose Ricardo Ziviani joserz at linux.vnet.ibm.com
Fri May 20 16:01:32 UTC 2016


 - 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"
-- 
2.7.4




More information about the Kimchi-devel mailing list