From af6fd71b4ddec9a4afd4415fd85c4f8a0d17dc0c Mon Sep 17 00:00:00 2001 From: Sebastien Vincent Date: Fri, 28 Feb 2020 17:54:11 +0100 Subject: [PATCH] Removes timestamp when logging to syslog. --- apps/freelan/src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/freelan/src/main.cpp b/apps/freelan/src/main.cpp index fdada81b..72308b62 100644 --- a/apps/freelan/src/main.cpp +++ b/apps/freelan/src/main.cpp @@ -433,6 +433,13 @@ bool parse_options(fscp::logger& logger, int argc, char** argv, cli_configuratio logger(fscp::log_level::trace) << "Debug output enabled."; } +#ifndef WINDOWS + if (!configuration.foreground) + { + logger.set_callback(&posix::syslog); + } +#endif + setup_configuration(logger, configuration.fl_configuration, vm); return true;