eggjs / egg-logger

Compare 72253db ... +1 ... 67424af

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 2 of 6 files from the diff.

@@ -98,7 +98,13 @@
Loading
98 98
      meta.pid = process.pid;
99 99
      meta.hostname = hostname;
100 100
      meta.message = message;
101 -
      output = options.json === true ? JSON.stringify(meta) : formatter(meta);
101 +
      if (options.json === true) {
102 +
        const outputMeta = { ...meta };
103 +
        outputMeta.ctx = undefined;
104 +
        output = JSON.stringify(outputMeta);
105 +
      } else {
106 +
        output = formatter(meta);
107 +
      }
102 108
    } else {
103 109
      output = message;
104 110
    }

@@ -44,11 +44,8 @@
Loading
44 44
    const meta = {
45 45
      formatter: contextFormatter,
46 46
      paddingMessage: this.paddingMessage,
47 +
      ctx: this.ctx,
47 48
    };
48 -
    Object.defineProperty(meta, 'ctx', {
49 -
      enumerable: false,
50 -
      value: this.ctx,
51 -
    });
52 49
    this._logger.log(LEVEL, arguments, meta);
53 50
  };
54 51
});

Learn more Showing 1 files with coverage changes found.

Changes in lib/utils.js
-8
+8
Loading file...
Files Coverage
lib -1.80% 97.29%
index.js 100.00%
Project Totals (14 files) 97.37%
Loading