[network-manager-openvpn] service: fix setting log-level based on debug-mode



commit 37c71ce06ea5416559c27827f3a96a2bad0204da
Author: Thomas Haller <thaller redhat com>
Date:   Tue May 24 23:18:15 2016 +0200

    service: fix setting log-level based on debug-mode
    
    As our debug message printed by _LOGD() are enabled by
    LOG_INFO level, we must also set the log_level accordingly.
    
    Fixes: f91c336f508cc1d5d7ec3af0da1d4f47ad808929

 src/nm-openvpn-service.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-openvpn-service.c b/src/nm-openvpn-service.c
index 0e6b2ca..50d23bb 100644
--- a/src/nm-openvpn-service.c
+++ b/src/nm-openvpn-service.c
@@ -2062,7 +2062,7 @@ main (int argc, char *argv[])
        }
 
        if (gl.log_level < 0)
-               gl.log_level = gl.debug ? LOG_DEBUG : LOG_NOTICE;
+               gl.log_level = gl.debug ? LOG_INFO : LOG_NOTICE;
 
        gl.log_syslog = _nm_utils_ascii_str_to_int64 (getenv ("NM_VPN_LOG_SYSLOG"),
                                                      10, 0, 1,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]