mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-17 18:02:06 +00:00
⚡ Change the log printing strategy in console
command
This commit is contained in:
parent
08b96c2663
commit
ca35177b44
@ -79,8 +79,10 @@ func runConsole() {
|
|||||||
msg := string(message)
|
msg := string(message)
|
||||||
if strings.Contains(msg, ":ERROR]") {
|
if strings.Contains(msg, ":ERROR]") {
|
||||||
msg = fmt.Sprintf(utils.Red, msg)
|
msg = fmt.Sprintf(utils.Red, msg)
|
||||||
|
fmt.Fprintln(os.Stderr, msg)
|
||||||
|
} else {
|
||||||
|
fmt.Fprintln(os.Stdout, msg)
|
||||||
}
|
}
|
||||||
log.Info().Msg(msg)
|
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user