diff --git a/src/index.ts b/src/index.ts index 7f27183..41446e0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -167,6 +167,9 @@ export class Logestic { } private async log(msg: string): Promise { + // ignore empty logs + if (!msg || msg === "") return + const msgNewLine = `${msg}\n`; if (!this.dest.name || !this.dest.name.length) { // This is either stdout or stderr