Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…t is the origin
  • Loading branch information...
commit fd971990603490f6f56b22bc36e5971c4229edd7 1 parent c522540
@c4milo authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 lib/console.js
View
14 lib/console.js
@@ -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);
};
});
Please sign in to comment.
Something went wrong with that request. Please try again.