mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 17:20:42 +01:00
minor: added version number to some error messages
This commit is contained in:
parent
735be1e247
commit
2a2cc3d26d
@ -1310,7 +1310,7 @@ dbgGetRuntimeOptions(void)
|
||||
while(dbgGetRTOptNamVal(&pszOpts, &optname, &optval)) {
|
||||
if(!strcasecmp((char*)optname, "help")) {
|
||||
fprintf(stderr,
|
||||
"rsyslogd runtime debug support - help requested, rsyslog terminates\n\n"
|
||||
"rsyslogd " VERSION " runtime debug support - help requested, rsyslog terminates\n\n"
|
||||
"environment variables:\n"
|
||||
"addional logfile: export RSYSLOG_DEBUGFILE=\"/path/to/file\"\n"
|
||||
"to set: export RSYSLOG_DEBUG=\"cmd cmd cmd\"\n\n"
|
||||
@ -1358,7 +1358,7 @@ dbgGetRuntimeOptions(void)
|
||||
bAbortTrace = 0;
|
||||
} else if(!strcasecmp((char*)optname, "filetrace")) {
|
||||
if(*optval == '\0') {
|
||||
fprintf(stderr, "Error: logfile debug option requires filename, "
|
||||
fprintf(stderr, "rsyslogd " VERSION " error: logfile debug option requires filename, "
|
||||
"e.g. \"logfile=debug.c\"\n");
|
||||
exit(1);
|
||||
} else {
|
||||
@ -1366,7 +1366,7 @@ dbgGetRuntimeOptions(void)
|
||||
dbgPrintNameAdd(optval, &printNameFileRoot);
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "Error: invalid debug option '%s', value '%s' - ignored\n",
|
||||
fprintf(stderr, "rsyslogd " VERSION " error: invalid debug option '%s', value '%s' - ignored\n",
|
||||
optval, optname);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user