[Kimchi-devel] [PATCH] [Wok] Bug fix #203: set default loglevel to INFO

Ramon Medeiros posted 1 patch 7 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/kimchi tags/patchew/20170221120438.11093-1-ramonn@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(-)
[Kimchi-devel] [PATCH] [Wok] Bug fix #203: set default loglevel to INFO
Posted by Ramon Medeiros 7 years, 1 month ago
Signed-off-by: Ramon Medeiros <ramonn@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

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel
Re: [Kimchi-devel] [PATCH] [Wok] Bug fix #203: set default loglevel to INFO
Posted by Aline Manera 7 years, 1 month ago
Applied. Thanks.

Regards,

Aline Manera

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel
Re: [Kimchi-devel] [PATCH] [Wok] Bug fix #203: set default loglevel to INFO
Posted by Lucio Correia 7 years, 1 month ago
Reviewed-By: Lucio Correia <luciojhc@linux.vnet.ibm.com>

On 21/02/2017 09:04, Ramon Medeiros wrote:
> Signed-off-by: Ramon Medeiros <ramonn@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
>


-- 
Lucio Correia

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