Add coloring for warnings

This commit is contained in:
DarthSim
2018-09-07 23:49:46 +06:00
parent b0fb204381
commit 5896dfd29b

View File

@@ -46,5 +46,5 @@ func stacktrace(skip int) string {
}
func warning(f string, args ...interface{}) {
log.Printf("[WARNING] %s", fmt.Sprintf(f, args...))
log.Printf("\033[1;33m[WARNING]\033[0m %s", fmt.Sprintf(f, args...))
}