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.
This commit is contained in:
Jason Rhinelander 2022-07-21 15:02:23 -03:00
parent 6df83b613d
commit f0590a9672
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 1 additions and 0 deletions

View File

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