mirror of https://gitee.com/bigwinds/arangodb
turn on logging as early as possible
This commit is contained in:
parent
53f05f04d4
commit
8c9780abec
|
@ -170,14 +170,17 @@ void LoggerFeature::prepare() {
|
|||
if (!_backgrounded && _foregroundTty) {
|
||||
LogAppender::addTtyAppender();
|
||||
}
|
||||
|
||||
Logger::initialize(false);
|
||||
}
|
||||
|
||||
void LoggerFeature::start() {
|
||||
LOG_TOPIC(TRACE, Logger::STARTUP) << name() << "::start";
|
||||
|
||||
if (!_forceDirect && _threaded) {
|
||||
Logger::flush();
|
||||
Logger::shutdown(true);
|
||||
|
||||
if (_forceDirect) {
|
||||
Logger::initialize(false);
|
||||
} else {
|
||||
Logger::initialize(_threaded);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue