Skip to content

Commit

Permalink
main: Added Stacktrace support displaying to version information
Browse files Browse the repository at this point in the history
Signed-off-by: Hofi <[email protected]>
  • Loading branch information
HofiOne committed Feb 25, 2025
1 parent 2b20057 commit b97b959
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syslog-ng/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ version(void)
printf("Enable-Debug: %s\n"
"Enable-GProf: %s\n"
"Enable-Memtrace: %s\n"
"Enable-Stackdump: %s\n"
"Enable-IPv6: %s\n"
"Enable-Spoof-Source: %s\n"
"Enable-TCP-Wrapper: %s\n"
Expand All @@ -187,6 +188,7 @@ version(void)
ON_OFF_STR(SYSLOG_NG_ENABLE_DEBUG),
ON_OFF_STR(SYSLOG_NG_ENABLE_GPROF),
ON_OFF_STR(SYSLOG_NG_ENABLE_MEMTRACE),
ON_OFF_STR(SYSLOG_NG_ENABLE_STACKDUMP),
ON_OFF_STR(SYSLOG_NG_ENABLE_IPV6),
ON_OFF_STR(SYSLOG_NG_ENABLE_SPOOF_SOURCE),
ON_OFF_STR(SYSLOG_NG_ENABLE_TCP_WRAPPER),
Expand Down Expand Up @@ -296,7 +298,7 @@ main(int argc, char *argv[])
if (debug_flag && !log_stderr)
{
fprintf(stderr,
"The -d/--debug option no longer implies -e/--stderr, if you want to redirect internal() source to stderr please also include -e/--stderr option");
"The -d/--debug option no longer implies -e/--stderr, if you want to redirect internal() source to stderr please also include -e/--stderr option\n");
}

gboolean exit_before_main_loop_run = main_loop_options.syntax_only
Expand Down

0 comments on commit b97b959

Please sign in to comment.