mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-23 19:38:26 +02:00
Fixed issue 506 - plus some quite major refactoring
This commit is contained in:
parent
a19e800b99
commit
24765e6891
8 changed files with 50 additions and 60 deletions
|
@ -43,9 +43,6 @@ s_suspended(false)
|
|||
CApp::~CApp()
|
||||
{
|
||||
delete m_args;
|
||||
|
||||
CLOG->remove(m_fileLog);
|
||||
delete m_fileLog;
|
||||
}
|
||||
|
||||
CApp::CArgsBase::CArgsBase() :
|
||||
|
@ -214,12 +211,6 @@ CApp::parseArgs(int argc, const char* const* argv, int& i)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// increase default filter level for daemon. the user must
|
||||
// explicitly request another level for a daemon.
|
||||
if (argsBase().m_daemon && argsBase().m_logFilter == NULL) {
|
||||
argsBase().m_logFilter = "NOTE";
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -318,3 +309,16 @@ CApp::loggingFilterWarning()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CApp::initialize(int argc, const char** argv)
|
||||
{
|
||||
// parse command line
|
||||
parseArgs(argc, argv);
|
||||
|
||||
// setup file logging after parsing args
|
||||
setupFileLogging();
|
||||
|
||||
// load configuration
|
||||
loadConfig();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue