- Log errors when recognizing a disconnected state
This commit is contained in:
Tristan B. Velloza Kildaire 2023-07-05 13:41:18 +02:00
parent 0fdaba47ad
commit 3bcfd85821
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,7 @@ void commitHandler(HTTPServerRequest request, HTTPServerResponse response)
// FIXME: Currently unsafe!
if(ircBot.isRunning() == false)
{
logger.error("Looks like birchwood is disconnected!");
ircBot.connect();
}
}
@ -193,6 +194,7 @@ void issueHandler(HTTPServerRequest request, HTTPServerResponse response)
// FIXME: Currently unsafe!
if(ircBot.isRunning() == false)
{
logger.error("Looks like birchwood is disconnected!");
ircBot.connect();
}
}
@ -224,6 +226,7 @@ void pullRequestHandler(HTTPServerRequest request, HTTPServerResponse response)
// FIXME: Currently unsafe!
if(ircBot.isRunning() == false)
{
logger.error("Looks like birchwood is disconnected!");
ircBot.connect();
}
}