@nsshunt/stsutils 1.16.36 → 1.16.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stsutils.mjs
CHANGED
|
@@ -3432,14 +3432,16 @@ class STSWinstonTransport extends Transport {
|
|
|
3432
3432
|
this.myopts = opts;
|
|
3433
3433
|
}
|
|
3434
3434
|
log(info, callback) {
|
|
3435
|
-
|
|
3436
|
-
if (
|
|
3437
|
-
|
|
3435
|
+
setImmediate(() => {
|
|
3436
|
+
if (info[Symbol.for("level")] == "debug") {
|
|
3437
|
+
if (!__privateGet(this, _debug)) {
|
|
3438
|
+
__privateSet(this, _debug, debugModule(`proc:${process.pid}:${this.myopts.stsContext}`));
|
|
3439
|
+
}
|
|
3440
|
+
__privateGet(this, _debug).call(this, info.message);
|
|
3438
3441
|
}
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
callback();
|
|
3442
|
+
this.emit("logged", info);
|
|
3443
|
+
callback();
|
|
3444
|
+
});
|
|
3443
3445
|
}
|
|
3444
3446
|
}
|
|
3445
3447
|
_debug = new WeakMap();
|