improve logger

This commit is contained in:
grimhilt
2023-04-02 12:59:11 +02:00
parent 7ba1ee083d
commit 02e0e05c76
12 changed files with 66 additions and 40 deletions

View File

@@ -24,7 +24,7 @@ export default class Box {
const readOnly = true;
this.imap.openBox(this.boxName, readOnly, (err, box) => {
if (err) logger.error(err);
if (err) logger.err(err);
this.sync(this.box.uidnext, box.uidnext);
});
}
@@ -48,7 +48,7 @@ export default class Box {
});
f.once("error", (err) => {
logger.error("Fetch error: " + err);
logger.err("Fetch error: " + err);
});
f.once("end", async () => {