mirror of
https://github.com/Icinga/icinga2.git
synced 2026-04-15 22:00:07 -04:00
parent
1fd2f09bae
commit
bb25e5bd8a
1 changed files with 3 additions and 2 deletions
|
|
@ -255,8 +255,9 @@ int Main(void)
|
|||
try {
|
||||
logLevel = Logger::StringToSeverity(severity);
|
||||
} catch (std::exception&) {
|
||||
/* use the default */
|
||||
Log(LogWarning, "icinga", "Invalid log level set. Using default 'information'.");
|
||||
/* Inform user and exit */
|
||||
Log(LogCritical, "icinga", "Invalid log level set. Default is 'information'.");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Logger::SetConsoleLogSeverity(logLevel);
|
||||
|
|
|
|||
Loading…
Reference in a new issue