mirror of https://github.com/Icinga/icinga2.git
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);
|
String name = Utility::BaseName(file);
|
||||||
|
|
||||||
|
if (name == "current")
|
||||||
|
return;
|
||||||
|
|
||||||
int ts;
|
int ts;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ts = Convert::ToLong(name);
|
ts = Convert::ToLong(name);
|
||||||
}
|
} catch (const std::exception&) {
|
||||||
catch (const std::exception&) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue