Browse Source

Ensures full logging while debugging

main
Eric Amodio 6 years ago
parent
commit
4b4f6d8e31
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/system/decorators/log.ts

+ 3
- 1
src/system/decorators/log.ts View File

@ -97,7 +97,9 @@ export function log(
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);

Loading…
Cancel
Save