mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
log: add preproc #if/#else to handle ABI incompatabilities in spdlog
This commit is contained in:
parent
49354e45af
commit
34b7ae66db
1 changed files with 4 additions and 1 deletions
|
@ -114,8 +114,11 @@ void Log::parse(json_t *cfg)
|
|||
}
|
||||
|
||||
if (syslog) {
|
||||
#if SPDLOG_VERSION >= 10400
|
||||
auto sink = std::make_shared<spdlog::sinks::syslog_sink_mt>("villas", LOG_PID, LOG_DAEMON, true);
|
||||
|
||||
#else
|
||||
auto sink = std::make_shared<spdlog::sinks::syslog_sink_mt>("villas", LOG_PID, LOG_DAEMON);
|
||||
#endif
|
||||
sinks->add_sink(sink);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue