diff --git a/sni.go b/sni.go index b3c8b15..fdf38b9 100644 --- a/sni.go +++ b/sni.go @@ -16,6 +16,7 @@ import ( "strings" "time" + "github.com/fatih/color" "github.com/golang/glog" ) @@ -294,7 +295,11 @@ func createFile() { func checkErr(messge string, err error, level int) { if err != nil { switch level { - case Info, Warning, Debug: + case Info: + color.Set(color.FgGreen) + defer color.Unset() + glog.Infoln(messge, err) + case Warning, Debug: glog.Infoln(messge, err) case Error: glog.Fatalln(messge, err)