mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 20:50: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)) {
|
while(dbgGetRTOptNamVal(&pszOpts, &optname, &optval)) {
|
||||||
if(!strcasecmp((char*)optname, "help")) {
|
if(!strcasecmp((char*)optname, "help")) {
|
||||||
fprintf(stderr,
|
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"
|
"environment variables:\n"
|
||||||
"addional logfile: export RSYSLOG_DEBUGFILE=\"/path/to/file\"\n"
|
"addional logfile: export RSYSLOG_DEBUGFILE=\"/path/to/file\"\n"
|
||||||
"to set: export RSYSLOG_DEBUG=\"cmd cmd cmd\"\n\n"
|
"to set: export RSYSLOG_DEBUG=\"cmd cmd cmd\"\n\n"
|
||||||
@ -1358,7 +1358,7 @@ dbgGetRuntimeOptions(void)
|
|||||||
bAbortTrace = 0;
|
bAbortTrace = 0;
|
||||||
} else if(!strcasecmp((char*)optname, "filetrace")) {
|
} else if(!strcasecmp((char*)optname, "filetrace")) {
|
||||||
if(*optval == '\0') {
|
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");
|
"e.g. \"logfile=debug.c\"\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
} else {
|
} else {
|
||||||
@ -1366,7 +1366,7 @@ dbgGetRuntimeOptions(void)
|
|||||||
dbgPrintNameAdd(optval, &printNameFileRoot);
|
dbgPrintNameAdd(optval, &printNameFileRoot);
|
||||||
}
|
}
|
||||||
} else {
|
} 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);
|
optval, optname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user