Don't falsely report failed write if it didn't fail
This commit is contained in:
parent
7005034e82
commit
e6990e0fc7
@ -39,7 +39,9 @@ module.exports.write = function(user, network, chan, msg) {
|
|||||||
path + "/" + chan.replace(/%/g, "%%").replace(/\//g, "%") + ".log",
|
path + "/" + chan.replace(/%/g, "%%").replace(/\//g, "%") + ".log",
|
||||||
line + "\n",
|
line + "\n",
|
||||||
function(e) {
|
function(e) {
|
||||||
|
if (e) {
|
||||||
log.error("Failed to write user log", e);
|
log.error("Failed to write user log", e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user