From 8c8380f51f33e70fb1344abf019b611d460134b9 Mon Sep 17 00:00:00 2001 From: EpicnessTwo Date: Sat, 3 Aug 2024 12:45:53 +0100 Subject: [PATCH] Fixed a few more error lines --- run.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.js b/run.js index 8eac5c0..08247d1 100644 --- a/run.js +++ b/run.js @@ -87,11 +87,11 @@ function logOutage(start, end) { }, err => { if(err) consoleLog('error','Error logging event:', err); else { - consoleLog('info', 'Logged outage to Google Calendar:', start, 'to', end); + consoleLog('info', 'Logged outage to Google Calendar: ' + start + ' to ' + end); sendDiscordNotification(start, end).then(() => { outageStart = null; }).catch(error => { - consoleLog('error', 'Failed to send Discord notification:', error); + consoleLog('error', 'Failed to send Discord notification: ' + error); }); } }); @@ -152,7 +152,7 @@ function pushTestEvent() { calendarId: CALENDAR_ID, resource: event }, err => { - if(err) consoleLog('error', 'Error pushing test event:', err); + if(err) consoleLog('error', 'Error pushing test event: ' + err); else consoleLog('info', 'Pushed test event to Google Calendar.'); }); }