瀏覽代碼

Ensures full logging while debugging

main
Eric Amodio 6 年之前
父節點
當前提交
4b4f6d8e31
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/system/decorators/log.ts

+ 3
- 1
src/system/decorators/log.ts 查看文件

@ -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…
取消
儲存