mirror of
https://github.com/bettercap/bettercap
synced 2025-07-13 08:33:48 -07:00
fix: improved loggin
This commit is contained in:
parent
c7c164f153
commit
bfbb9dd016
2 changed files with 6 additions and 6 deletions
|
@ -79,7 +79,7 @@ func (s *EventsStream) Start() error {
|
|||
tm := e.Time.Format("2006-01-02 15:04:05")
|
||||
|
||||
if e.Tag == "sys.log" {
|
||||
fmt.Printf("[%s] [%s] %s %v\n", tm, core.Green(e.Tag), e.Label(), e.Data.(session.LogMessage).Message)
|
||||
fmt.Printf("[%s] [%s] (%s) %s\n", tm, core.Green(e.Tag), e.Label(), e.Data.(session.LogMessage).Message)
|
||||
} else {
|
||||
fmt.Printf("[%s] [%s] %v\n", tm, core.Green(e.Tag), e.Data)
|
||||
}
|
||||
|
|
|
@ -34,11 +34,11 @@ const (
|
|||
|
||||
var (
|
||||
labels = map[int]string{
|
||||
DEBUG: "DBG",
|
||||
INFO: "INF",
|
||||
IMPORTANT: "IMP",
|
||||
WARNING: "WAR",
|
||||
ERROR: "ERR",
|
||||
DEBUG: "dbg",
|
||||
INFO: "inf",
|
||||
IMPORTANT: "imp",
|
||||
WARNING: "war",
|
||||
ERROR: "err",
|
||||
FATAL: "!!!",
|
||||
}
|
||||
colors = map[int]string{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue