mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
fix: fixed a bug which prevented -no-colors from working correctly
This commit is contained in:
parent
9d0c7bc405
commit
94ba9b19d1
2 changed files with 10 additions and 1 deletions
10
core/swag.go
10
core/swag.go
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue