We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91a3d0b commit 9010163Copy full SHA for 9010163
1 file changed
OpenFlow/src/Logger.ts
@@ -10,7 +10,10 @@ export class Logger {
10
if (info instanceof Error || info.stack) {
11
return `${info.timestamp} [${info.level}] ${info.message} \n ${info.stack}`;
12
}
13
- return `${info.timestamp} [${Logger.getLabel()}][${info.level}] ${info.message}`;
+ if (Config.NODE_ENV == "development") {
14
+ return `${info.timestamp} [${Logger.getLabel()}][${info.level}] ${info.message}`;
15
+ }
16
+ return `${info.timestamp} [${info.level}] ${info.message}`;
17
});
18
static getLabel = function () {
19
let e = new Error();
0 commit comments