From 102eb460dbd9f5d6617a5a7307eee33934b63c30 Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Fri, 15 Jul 2016 17:59:39 -0300 Subject: [PATCH] Use log-timestamp to add timestamps to logs --- CHANGELOG.md | 2 ++ package.json | 1 + src/app.coffee | 1 + 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1914477..8fa309b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +* Use log-timestamp to add timestamps to logs [Pablo] + # v1.12.2 * Bind mount kmod if the container is debian or raspbian [Pablo] diff --git a/package.json b/package.json index f01a9203..392c46b3 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "knex": "~0.8.3", "lockfile": "^1.0.1", "lodash": "^3.0.0", + "log-timestamp": "^0.1.2", "mixpanel": "0.0.20", "network-checker": "~0.0.5", "pinejs-client": "^1.7.1", diff --git a/src/app.coffee b/src/app.coffee index 32b27107..d7df0183 100644 --- a/src/app.coffee +++ b/src/app.coffee @@ -1,3 +1,4 @@ +require('log-timestamp') process.on 'uncaughtException', (e) -> console.error('Got unhandled exception', e, e?.stack)