From 742f73f2bd608e39bcd32adbb2f356ac1d165327 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 14 Nov 2018 22:37:52 +0000 Subject: [PATCH] Fixed bug where the time was the date --- down-detector.js | 2 +- logs.log | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/down-detector.js b/down-detector.js index 17536f9..7752aa6 100644 --- a/down-detector.js +++ b/down-detector.js @@ -35,7 +35,7 @@ function doStuff() { }); } -const dateFormat = 'DD-MM-YY HH:MM:ss'; +const dateFormat = 'DD-MM-YY HH:mm:ss'; function ConnectionRegained(timedown) { let output = '[' + moment().format(dateFormat) + '] Connection regained after ' + timedown + 's of downtime'; diff --git a/logs.log b/logs.log index da63d78..ca9f20e 100644 --- a/logs.log +++ b/logs.log @@ -1,2 +1,13 @@ [13-11-18 07:11:34] Connection regained after 41s of downtime -NEW SESSIONNEW SESSION +NEW SESSION +[13-11-18 10:11:38] Lost Connection +[13-11-18 10:11:19] Connection regained after 41s of downtime +[13-11-18 20:11:10] Lost Connection +[13-11-18 20:11:02] Connection regained after 40s of downtime +[13-11-18 20:11:04] Lost Connection +[13-11-18 23:11:46] Lost Connection +[13-11-18 23:11:39] Connection regained after 40s of downtime +[14-11-18 07:11:12] Lost Connection +[14-11-18 07:11:52] Connection regained after 40s of downtime +[14-11-18 07:11:38] Lost Connection +[14-11-18 07:11:19] Connection regained after 42s of downtime