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
This commit is contained in:
marian 2018-11-13 14:00:19 +00:00
parent 06eabcb03f
commit fbd39c5c20
1 changed files with 4 additions and 1 deletions

View File

@ -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);