From d628ed85ae64ebc59c715221446ccecc32b3df24 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Thu, 1 Jul 2010 20:12:06 -0700 Subject: [PATCH] More comprehensive error logging --- lib/core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core.js b/lib/core.js index 93f9fe5a80b..28566b2505c 100644 --- a/lib/core.js +++ b/lib/core.js @@ -43,7 +43,8 @@ Mongoose = this.Mongoose = { _onError: function(connection, err){ if (this.set('log')){ - sys.log('Mongoose Error, connection: ' + url.format(connection.uri) + "\n" + err); + sys.log('Mongoose Error, connection: ' + url.format(connection.uri)); + sys.puts(err.stack); } },