Remove the initial sink before reconfiguring logging

Without this, the original sink set up very early in daemon/lokinet.cpp
(which goes to stderr) is still around, and so we get double logging.
pull/1965/head
Jason Rhinelander 2 years ago
parent 6df83b613d
commit f0590a9672
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262

@ -777,6 +777,7 @@ namespace llarp
if (log::get_level_default() != log::Level::off)
log::reset_level(conf.logging.m_logLevel);
log::clear_sinks();
log::add_sink(log_type, conf.logging.m_logFile);
return true;

Loading…
Cancel
Save