We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94e4cf6 commit d4ec7abCopy full SHA for d4ec7ab
1 file changed
OpenFlow/src/Logger.ts
@@ -71,7 +71,10 @@ export class Logger {
71
prefix = (dts.padEnd(13, " ") + "[" + cls.padEnd(21) + "][" + func + "] ").padEnd(60, " ");
72
}
73
74
- return prefix + color + message + Console.Reset;
+ if (Logger.usecolors) {
75
+ return prefix + color + message + Console.Reset;
76
+ }
77
+ return prefix + message + Console.Reset;
78
79
public error(cls: string, func: string, message: string | Error | unknown) {
80
if (Config.unittesting) return;
0 commit comments