[Kimchi-devel] [PATCH] [Wok] Bug fix #203: set default loglevel to INFO
Ramon Medeiros
ramonn at linux.vnet.ibm.com
Tue Feb 21 12:04:38 UTC 2017
Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
src/wok.conf.in | 2 +-
src/wok/config.py.in | 2 +-
src/wok/server.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/wok.conf.in b/src/wok.conf.in
index 3806609..1ebdacf 100644
--- a/src/wok.conf.in
+++ b/src/wok.conf.in
@@ -37,7 +37,7 @@
#log_dir = @localstatedir@/log/wok
# Logging level: debug, info, warning, error or critical
-#log_level = debug
+#log_level = info
[authentication]
# Authentication method, available option: pam, ldap.
diff --git a/src/wok/config.py.in b/src/wok/config.py.in
index 8782a5f..97776dd 100644
--- a/src/wok/config.py.in
+++ b/src/wok/config.py.in
@@ -28,7 +28,7 @@ __version__ = "@wokversion@"
__release__ = "@wokrelease@"
CACHEEXPIRES = 31536000 # expires is one year.
-DEFAULT_LOG_LEVEL = "debug"
+DEFAULT_LOG_LEVEL = "info"
FONT_FILES = {'fontawesome': ['fontawesome-webfont.ttf'],
'opensans': ['OpenSans-ExtraBoldItalic.ttf',
diff --git a/src/wok/server.py b/src/wok/server.py
index fc2e167..7133233 100644
--- a/src/wok/server.py
+++ b/src/wok/server.py
@@ -103,7 +103,7 @@ class Server(object):
cherrypy.log.access_file = options.access_log
cherrypy.log.error_file = options.error_log
- logLevel = LOGGING_LEVEL.get(options.log_level, logging.DEBUG)
+ logLevel = LOGGING_LEVEL.get(options.log_level, logging.INFO)
dev_env = options.environment != 'production'
# Enable cherrypy screen logging if running environment
--
2.9.3
More information about the Kimchi-devel
mailing list