diff --git a/server/notification.js b/server/notification.js index 99cc1568c..113882000 100644 --- a/server/notification.js +++ b/server/notification.js @@ -15,7 +15,7 @@ class Notification { }) return true; } catch (error) { - console.log(error) + console.error(error) return false; } @@ -31,7 +31,7 @@ class Notification { }) return true; } catch (error) { - console.log(error) + console.error(error) return false; } @@ -61,7 +61,7 @@ class Notification { let res = await axios.post(notification.webhookURL, finalData, config) return true; } catch (error) { - console.log(error) + console.error(error) return false; } @@ -105,7 +105,7 @@ class Notification { let res = await axios.post(notification.discordWebhookUrl, data) return true; } catch(error) { - console.log(error) + console.error(error) return false; } @@ -121,10 +121,10 @@ class Notification { let res = await axios.post(notification.signalURL, data, config) return true; } catch (error) { - console.log(error) + console.error(error) return false; } - + } else if (notification.type === "slack") { try { if (heartbeatJSON == null) { @@ -173,7 +173,7 @@ class Notification { let res = await axios.post(notification.slackwebhookURL, data) return true; } catch (error) { - console.log(error) + console.error(error) return false; } diff --git a/server/server.js b/server/server.js index 93e43cd6e..b53f32b49 100644 --- a/server/server.js +++ b/server/server.js @@ -19,7 +19,7 @@ const version = require('../package.json').version; const hostname = args.host || "0.0.0.0" const port = args.port || 3001 -console.log("Version: " + version) +console.info("Version: " + version) console.log("Creating express and socket.io instance") const app = express(); @@ -236,7 +236,7 @@ let needSetup = false; }); } catch (e) { - console.log(e) + console.error(e) callback({ ok: false, msg: e.message diff --git a/src/util-frontend.js b/src/util-frontend.js index 7094c159b..abdf7b5ae 100644 --- a/src/util-frontend.js +++ b/src/util-frontend.js @@ -394,7 +394,7 @@ export function timezoneList() { time: getTimezoneOffset(timezone), }) } catch (e) { - console.log(e.message); + console.error(e.message); console.log("Skip this timezone") }