Signed-off-by: Ramon Medeiros <ramonn(a)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
Show replies by date
Applied. Thanks.
Regards,
Aline Manera