Skip to content

Commit

Permalink
Ensures full logging while debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Dec 21, 2018
1 parent 9b10cad commit 4b4f6d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/system/decorators/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export function log<T>(
const correlationId = getNextCorrelationId();

if (
(Logger.level !== LogLevel.Debug && !(Logger.level === LogLevel.Verbose && !options.debug)) ||
(!Logger.isDebugging &&
Logger.level !== LogLevel.Debug &&
!(Logger.level === LogLevel.Verbose && !options.debug)) ||
(typeof options.condition === 'function' && !options.condition(...args))
) {
return fn!.apply(this, args);
Expand Down

0 comments on commit 4b4f6d8

Please sign in to comment.