From fbd39c5c20f9f9f6ff055fdf7279a86be04a7711 Mon Sep 17 00:00:00 2001 From: marian Date: Tue, 13 Nov 2018 14:00:19 +0000 Subject: [PATCH] Make sure debugger output is enabled if debug is enabled when connection starts. Fixes suppressed output: yate is started daemonified with no log file. git-svn-id: http://yate.null.ro/svn/yate/trunk@6327 acf43c95-373e-0410-b603-e72c3f656dc1 --- modules/rmanager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/rmanager.cpp b/modules/rmanager.cpp index b1d8696c..33324d70 100644 --- a/modules/rmanager.cpp +++ b/modules/rmanager.cpp @@ -484,8 +484,11 @@ void Connection::run() } else { m_auth = cfg().getValue("password") ? User : Admin; - if (Admin == m_auth) + if (Admin == m_auth) { m_debug = cfg().getBoolValue("debug",false); + if (m_debug) + Debugger::enableOutput(true); + } m_output = cfg().getBoolValue("output",m_debug); } m_histLen = cfg().getIntValue("maxhistory",DEF_HISTORY);