mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 12:44:58 +02:00
parent
1fd2f09bae
commit
bb25e5bd8a
@ -255,8 +255,9 @@ int Main(void)
|
|||||||
try {
|
try {
|
||||||
logLevel = Logger::StringToSeverity(severity);
|
logLevel = Logger::StringToSeverity(severity);
|
||||||
} catch (std::exception&) {
|
} catch (std::exception&) {
|
||||||
/* use the default */
|
/* Inform user and exit */
|
||||||
Log(LogWarning, "icinga", "Invalid log level set. Using default 'information'.");
|
Log(LogCritical, "icinga", "Invalid log level set. Default is 'information'.");
|
||||||
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger::SetConsoleLogSeverity(logLevel);
|
Logger::SetConsoleLogSeverity(logLevel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user