Skip to content

Commit

Permalink
Improve formatting of backtraces in the stdout logger
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna committed Jun 24, 2011
1 parent 4da856d commit e8938f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/logmagic.js
Expand Up @@ -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);
Expand Down

0 comments on commit e8938f2

Please sign in to comment.