Skip to content

Commit d4ec7ab

Browse files
committed
remove base color, when color is disabled
1 parent 94e4cf6 commit d4ec7ab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

OpenFlow/src/Logger.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ export class Logger {
7171
prefix = (dts.padEnd(13, " ") + "[" + cls.padEnd(21) + "][" + func + "] ").padEnd(60, " ");
7272
}
7373
}
74-
return prefix + color + message + Console.Reset;
74+
if (Logger.usecolors) {
75+
return prefix + color + message + Console.Reset;
76+
}
77+
return prefix + message + Console.Reset;
7578
}
7679
public error(cls: string, func: string, message: string | Error | unknown) {
7780
if (Config.unittesting) return;

0 commit comments

Comments
 (0)