Permalink
Browse files

Fixes issue of messages no showing up in the front-end console when i…

…t is the origin
  • Loading branch information...
1 parent c522540 commit fd971990603490f6f56b22bc36e5971c4229edd7 @c4milo committed May 3, 2012
Showing with 9 additions and 5 deletions.
  1. +9 −5 lib/console.js
View
@@ -17,16 +17,20 @@ function ConsoleAgent(sendEvent) {
message: {
text: util.format.apply(this, arguments),
level: level == 'warn' ? 'warning' : level,
- source: 'nodejs'
+ source: 'console-api'
}
}
};
- if (!self.enabled) {
- self.messages.push(message);
- return;
- }
+ //TODO make it aware of RemoteObjects so
+ //that the console in the frontend can show us its shinny
+ //dropdown
+ /*if (level == 'dir') {
+ message.params.message.type = level;
+ }*/
+ //TODO save messages when this agent is disabled.
+ //self.messages.push(message);
sendEvent(message);
};
});

0 comments on commit fd97199

Please sign in to comment.