Andrew Chalkley преди 9 години
родител
ревизия
7735627366
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      back-end/logger.js

+ 5 - 1
back-end/logger.js

@@ -2,4 +2,8 @@
 
 const bunyan = require("bunyan");
 
-module.exports = bunyan.createLogger({name: "flasher.js"});
+process.stderr.write = console.error.bind(console); process.stdout.write = console.log.bind(console); 
+
+module.exports = bunyan.createLogger({
+    name: "flasher.js"
+});