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-e72c3f656dc1divo
parent
06eabcb03f
commit
fbd39c5c20
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue