mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
JSON.stringify error object for logging
This commit is contained in:
parent
1b92300445
commit
4e61728a6a
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ function readFromDB(id, callback) {
|
||||||
} else {
|
} else {
|
||||||
//logger.info(result.rows);
|
//logger.info(result.rows);
|
||||||
if (result.rows.length <= 0) {
|
if (result.rows.length <= 0) {
|
||||||
callback("not found note in db: " + id, null);
|
callback("not found note in db: " + JSON.stringify(id), null);
|
||||||
} else {
|
} else {
|
||||||
if(config.debug)
|
if(config.debug)
|
||||||
logger.info("read from db success");
|
logger.info("read from db success");
|
||||||
|
|
Loading…
Reference in a new issue