mirror of https://github.com/status-im/codimd.git
Using util.inspect instead of JSON.stringify to avoid "TypeError: Converting circular structure to JSON"
This commit is contained in:
parent
4e61728a6a
commit
57253d28a7
|
@ -85,7 +85,7 @@ function readFromDB(id, callback) {
|
|||
} else {
|
||||
//logger.info(result.rows);
|
||||
if (result.rows.length <= 0) {
|
||||
callback("not found note in db: " + JSON.stringify(id), null);
|
||||
callback("not found note in db: " + util.inspect(id), null);
|
||||
} else {
|
||||
if(config.debug)
|
||||
logger.info("read from db success");
|
||||
|
|
Loading…
Reference in New Issue