Sfoglia il codice sorgente

Ensures full logging while debugging

main
Eric Amodio 6 anni fa
parent
commit
4b4f6d8e31
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      src/system/decorators/log.ts

+ 3
- 1
src/system/decorators/log.ts Vedi 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);

Caricamento…
Annulla
Salva