[Kimchi-devel] [PATCH] [Wok] Bug fix #35: Option to specific logging levels

Ramon Medeiros posted 1 patch 4 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/kimchi-wok tags/patchew/20170209123130.28915-1-ramonn@linux.vnet.ibm.com
Test Unit Tests passed
src/wok/server.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

[Kimchi-devel] [PATCH] [Wok] Bug fix #35: Option to specific logging levels

Posted by Ramon Medeiros 4 years, 2 months ago
Signed-off-by: Ramon Medeiros <ramonn@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

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Re: [Kimchi-devel] [PATCH] [Wok] Bug fix #35: Option to specific logging levels

Posted by Aline Manera 4 years, 2 months ago
Applied. Thanks.

Regards,

Aline Manera

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel