aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-09-29 16:07:06 -0400
committerAdam Soltys <[email protected]>2021-09-29 16:07:13 -0400
commita85ed1615e04336ef1e0fea22cb0ee8fd3c99fef (patch)
tree4ecf4fe4a0669941cdaf9761bc225e2540b1d1c6 /index.js
parentdf21b58a50ae4044ad121f06691d15f6b1773d10 (diff)
downloadcoinos-server-a85ed1615e04336ef1e0fea22cb0ee8fd3c99fef.tar.gz
coinos-server-a85ed1615e04336ef1e0fea22cb0ee8fd3c99fef.zip
log errors
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index e535b16f..c006e1ea 100644
--- a/index.js
+++ b/index.js
@@ -107,7 +107,7 @@ app.use((err, req, res, next) => {
if (req.user) details.username = req.user.username;
- l.error("Error: ", details);
+ l.error("uncaught error: ", JSON.stringify(details));
res.status(500);
res.set({
"Cache-Control": "no-cache"