Browse files

Improve formatting of backtraces in the stdout logger

  • Loading branch information...
1 parent 4da856d commit e8938f245429c2512abbc8d9cf2c4bbbddaa6acf @pquerna committed Jun 24, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/logmagic.js
View
4 lib/logmagic.js
@@ -184,7 +184,9 @@ exports.route = function(match, loglevel, sinkname) {
exports.registerSink("console", function(modulename, level, message, obj) {
if (obj) {
/* TODO: improve */
- console.log(modulename +": "+ message + " " + JSON.stringify(obj));
+ var fm = obj['full_message'];
+ obj['full_message'] = undefined;
+ console.log(modulename +": "+ message + " " + JSON.stringify(obj) + "\n "+ fm);
}
else {
console.log(modulename +": "+ message);

0 comments on commit e8938f2

Please sign in to comment.