mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Improve debugging
This commit is contained in:
@@ -19,7 +19,9 @@ import (
|
||||
// Debug enables logging only if "--verbose" flag passed
|
||||
func Debug(v ...interface{}) {
|
||||
if Settings.Verbose {
|
||||
log.Println(v...)
|
||||
log.Print("\033[32mListener:")
|
||||
log.Print(v...)
|
||||
log.Println("\033[0m")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -50,7 +50,9 @@ func NewReplayManager() (rm *ReplayManager) {
|
||||
// Debug enables logging only if "--verbose" flag passed
|
||||
func Debug(v ...interface{}) {
|
||||
if Settings.Verbose {
|
||||
log.Println(v...)
|
||||
log.Print("\033[33mReplay:")
|
||||
log.Print(v...)
|
||||
log.Println("\033[0m")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user