diff options
author | Wu Cheng-Han | 2015-07-14 23:52:24 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2015-07-14 23:52:24 +0800 |
commit | 4e61728a6a05156ae7e18cfb2ccc74bcf1fc4825 (patch) | |
tree | dc4191c377a1ea9b529aafafe77361f57a553cfd | |
parent | 1b92300445e8a0d76a6778c4e2802b6d2ff631a5 (diff) |
JSON.stringify error object for logging
-rw-r--r-- | lib/db.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ function readFromDB(id, callback) { } else { //logger.info(result.rows); if (result.rows.length <= 0) { - callback("not found note in db: " + id, null); + callback("not found note in db: " + JSON.stringify(id), null); } else { if(config.debug) logger.info("read from db success"); |