Skip to content

Commit

Permalink
Removes timestamp when logging to syslog.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vincent committed Feb 28, 2020
1 parent a8fe5a2 commit af6fd71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/freelan/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af6fd71

Please sign in to comment.