Navigation Menu

Skip to content

Commit

Permalink
More comprehensive error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jul 2, 2010
1 parent 0247329 commit d628ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core.js
Expand Up @@ -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);
}
},

Expand Down

0 comments on commit d628ed8

Please sign in to comment.