Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improve formatting

  • Loading branch information...
commit 89b6f82ed1b76599788b319bf583aa738f81c5ff 1 parent e8938f2
@pquerna authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/logmagic.js
View
4 lib/logmagic.js
@@ -184,9 +184,9 @@ exports.route = function(match, loglevel, sinkname) {
exports.registerSink("console", function(modulename, level, message, obj) {
if (obj) {
/* TODO: improve */
- var fm = obj['full_message'];
+ var fm = obj['full_message'] ? "\n " + obj['full_message'] : "";
obj['full_message'] = undefined;
- console.log(modulename +": "+ message + " " + JSON.stringify(obj) + "\n "+ fm);
+ console.log(modulename +": "+ message + " " + JSON.stringify(obj) + fm);
}
else {
console.log(modulename +": "+ message);

0 comments on commit 89b6f82

Please sign in to comment.
Something went wrong with that request. Please try again.