Fix incorrect usage of oxen-logging syslog

Previously oxen-logging was erroneously hard-coded to use the target
"lokinet" for system logs.  Obviously this is wrong for anything else
which uses oxen-logging and the system log.  This changes our call to
add_sink to pass "lokinet" as the target rather than the config
filename, and updates oxen-logging to use that argument correctly.
This commit is contained in:
Thomas Winget 2023-01-17 17:04:53 -05:00
parent ae9fd9a739
commit fbfd70a35a
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 9f2323a2db5fc54fe8394892769eff859967f735
Subproject commit 12c17d6eab754908cd88f05d09b9388381e47515

View File

@ -411,7 +411,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);
log::add_sink(log_type, log_type == log::Type::System ? "lokinet" : conf.logging.m_logFile);
enableRPCServer = conf.api.m_enableRPCServer;