always supply a callback when writing messages
This commit is contained in:
@@ -13,9 +13,11 @@ var messageTemplate = function (type, time, tag, info) {
|
||||
return JSON.stringify([type.toUpperCase(), time, tag, info]);
|
||||
};
|
||||
|
||||
var noop = function () {};
|
||||
|
||||
var write = function (ctx, content) {
|
||||
if (!ctx.store) { return; }
|
||||
ctx.store.log(ctx.channelName, content);
|
||||
ctx.store.log(ctx.channelName, content, noop);
|
||||
};
|
||||
|
||||
// various degrees of logging
|
||||
|
||||
Reference in New Issue
Block a user