[Kimchi-devel] [PATCH] [Wok] Bug fix #35: Option to specific logging levels
Ramon Medeiros
ramonn at linux.vnet.ibm.com
Thu Feb 9 12:31:30 UTC 2017
Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
src/wok/server.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/wok/server.py b/src/wok/server.py
index 48f455b..ffe8130 100644
--- a/src/wok/server.py
+++ b/src/wok/server.py
@@ -1,7 +1,7 @@
#
# Project Wok
#
-# Copyright IBM Corp, 2015-2016
+# Copyright IBM Corp, 2015-2017
#
# Code derived from Project Kimchi
#
@@ -115,6 +115,10 @@ class Server(object):
if isinstance(handler, logging.FileHandler):
cherrypy.log.error_log.removeHandler(handler)
+ # set logLevel
+ cherrypy.log.access_log.setLevel(logLevel)
+ cherrypy.log.error_log.setLevel(logLevel)
+
# Create handler to access log file
h = logging.handlers.WatchedFileHandler(options.access_log, 'a',
delay=1)
--
2.9.3
More information about the Kimchi-devel
mailing list