Merge pull request #1965 from jagerman/fix-double-logging

Remove the initial sink before reconfiguring logging
This commit is contained in:
Jason Rhinelander 2022-07-22 12:20:18 -03:00 committed by GitHub
commit 874221db70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;