fix: fixed a bug which prevented -no-colors from working correctly

This commit is contained in:
evilsocket 2018-03-16 12:20:24 +01:00
commit 94ba9b19d1
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 10 additions and 1 deletions

View file

@ -51,6 +51,16 @@ func InitSwag(disableColors bool) {
BG_YELLOW = ""
BG_LBLUE = ""
RESET = ""
LogColors = map[int]string{
DEBUG: DIM + FG_BLACK + BG_DGRAY,
INFO: FG_WHITE + BG_GREEN,
IMPORTANT: FG_WHITE + BG_LBLUE,
WARNING: FG_WHITE + BG_YELLOW,
ERROR: FG_WHITE + BG_RED,
FATAL: FG_WHITE + BG_RED + BOLD,
}
HasColors = false
}
}