if the default log level is explicitly specified by --default-log-level
option, use the level rather than defaulting to logging.DEBUG.

Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/log.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ryu/log.py b/ryu/log.py
index db88ee7..d731967 100644
--- a/ryu/log.py
+++ b/ryu/log.py
@@ -78,9 +78,9 @@ def init_log():
         mode = int(CONF.log_file_mode, 8)
         os.chmod(log_file, mode)
 
-    if CONF.verbose:
-        log.setLevel(logging.DEBUG)
-    elif CONF.default_log_level is not None:
+    if CONF.default_log_level is not None:
         log.setLevel(CONF.default_log_level)
+    elif CONF.verbose:
+        log.setLevel(logging.DEBUG)
     else:
         log.setLevel(logging.INFO)
-- 
1.8.0.1


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to