Skip to content

Commit a6c2b89

Browse files
committed
Adding in utils class
1 parent 0ca4814 commit a6c2b89

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

stomp-utils.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var sys = require('sys');
2+
3+
4+
StompLogging = module.exports = function(should_debug) {
5+
this.should_debug = should_debug;
6+
};
7+
8+
StompLogging.prototype.debug = function(message) {
9+
if (this.should_debug)
10+
console.log(message);
11+
};

0 commit comments

Comments
 (0)