Commit e217a197 authored by louiz’'s avatar louiz’

Fix the build without systemd, by adding a few define

parent bfcf2945
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
# define SD_INFO "[INFO]: " # define SD_INFO "[INFO]: "
# define SD_WARNING "[WARNING]: " # define SD_WARNING "[WARNING]: "
# define SD_ERR "[ERROR]: " # define SD_ERR "[ERROR]: "
# define LOG_ERR 3
# define LOG_WARNING 4
# define LOG_INFO 6
# define LOG_DEBUG 7
#endif #endif
// Macro defined to get the filename instead of the full path. But if it is // Macro defined to get the filename instead of the full path. But if it is
...@@ -111,6 +115,7 @@ namespace logging_details ...@@ -111,6 +115,7 @@ namespace logging_details
else else
{ {
#endif #endif
(void)syslog_level;
static const char* priority_names[] = {"DEBUG", "INFO", "WARNING", "ERROR"}; static const char* priority_names[] = {"DEBUG", "INFO", "WARNING", "ERROR"};
auto& os = Logger::instance()->get_stream(level); auto& os = Logger::instance()->get_stream(level);
os << '[' << priority_names[level] << "]: " << src_file << ':' << line << ":\t"; os << '[' << priority_names[level] << "]: " << src_file << ':' << line << ":\t";
......
Markdown is supported
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