Commit 857b64af authored by Killian Kemps's avatar Killian Kemps
Browse files

Add date to basic logging

parent 1cdf6a3e
process.title = 'qowalalive';
process.title = 'qowala';
var express = require('express');
var routes = require('./routes');
......@@ -10,6 +10,16 @@ var passportAuthentication = require('./lib/passport');
var app = express();
var port = process.env.PORT || 8080;
// Add some logging
["log", "warn", "error"].forEach(function(method) {
var oldMethod = console[method].bind(console);
console[method] = function() {
oldMethod.apply(
console,
[new Date().toISOString()].concat(arguments[0])
);
};
});
// Configuration file for the DB
var dbconfig = require('./config/db');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment