mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-06 21:34:28 +02:00
Don't throw an exception when replaying the current replay log file
fixes #10239
This commit is contained in:
parent
dcf3fdf782
commit
e5b26e60a5
@ -692,12 +692,14 @@ void ApiListener::LogGlobHandler(std::vector<int>& files, const String& file)
|
||||
{
|
||||
String name = Utility::BaseName(file);
|
||||
|
||||
if (name == "current")
|
||||
return;
|
||||
|
||||
int ts;
|
||||
|
||||
try {
|
||||
ts = Convert::ToLong(name);
|
||||
}
|
||||
catch (const std::exception&) {
|
||||
} catch (const std::exception&) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user