always supply a callback when writing messages

This commit is contained in:
ansuz
2019-09-12 18:04:24 +02:00
parent e5cea3c250
commit cb6b4a8eb3
2 changed files with 5 additions and 14 deletions

View File

@@ -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