Commit c73c9ce5 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

fix includes and spdlog API

parent fe3413e1
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <list> #include <list>
#include <algorithm> #include <algorithm>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/syslog_sink.h> #include <spdlog/sinks/syslog_sink.h>
#include <spdlog/sinks/basic_file_sink.h> #include <spdlog/sinks/basic_file_sink.h>
...@@ -113,7 +114,7 @@ void Log::parse(json_t *cfg) ...@@ -113,7 +114,7 @@ void Log::parse(json_t *cfg)
} }
if (syslog) { if (syslog) {
auto sink = std::make_shared<spdlog::sinks::syslog_sink_mt>("villas", LOG_PID, LOG_DAEMON); auto sink = std::make_shared<spdlog::sinks::syslog_sink_mt>("villas", LOG_PID, LOG_DAEMON, true);
sinks->add_sink(sink); sinks->add_sink(sink);
} }
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
*********************************************************************************/ *********************************************************************************/
#include <sys/mman.h> #include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <sstream> #include <sstream>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment