if devmode no logs will be sent

This commit is contained in:
MatteZ02 committed 2020-06-17 13:20:35 +03:00
1 parent 44ef6cf4bc
commit e1492fb885
3 files changed
+11 -8

No files matched your search

+1 -1
View File
@@ -26,5 +26,5 @@ const oldConsole = {};
oldConsole.log = console.log;
console.log = function (arg) {
oldConsole.log(arg);
webhookClient.send(arg);
if (!config.devMode) webhookClient.send(arg);
};