Skip to content

Commit 4b4f6d8

Browse files
committed
Ensures full logging while debugging
1 parent 9b10cad commit 4b4f6d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/system/decorators/log.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ export function log<T>(
9797
const correlationId = getNextCorrelationId();
9898

9999
if (
100-
(Logger.level !== LogLevel.Debug && !(Logger.level === LogLevel.Verbose && !options.debug)) ||
100+
(!Logger.isDebugging &&
101+
Logger.level !== LogLevel.Debug &&
102+
!(Logger.level === LogLevel.Verbose && !options.debug)) ||
101103
(typeof options.condition === 'function' && !options.condition(...args))
102104
) {
103105
return fn!.apply(this, args);

0 commit comments

Comments
 (0)