change internal log prefix from '[GF]' to '[INTE]'

This commit is contained in:
John 2020-02-26 11:57:26 +08:00
parent 6317d9de53
commit 87cd0703c0
2 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ branches:
- staging
env:
- GF_DEV=1 GO111MODULE=on
- GF_DEBUG=1 GO111MODULE=on
services:
- mysql

View File

@ -42,7 +42,7 @@ func Print(v ...interface{}) {
if !isGFDebug {
return
}
fmt.Println(append([]interface{}{now(), "[GF]", file()}, v...)...)
fmt.Println(append([]interface{}{now(), "[INTE]", file()}, v...)...)
}
// Printf prints <v> with format <format> using fmt.Printf.
@ -51,7 +51,7 @@ func Printf(format string, v ...interface{}) {
if !isGFDebug {
return
}
fmt.Printf(now()+" [GF] "+file()+" "+format+"\n", v...)
fmt.Printf(now()+" [INTE] "+file()+" "+format+"\n", v...)
}
// Error prints <v> with newline using fmt.Println.
@ -60,7 +60,7 @@ func Error(v ...interface{}) {
if !isGFDebug {
return
}
array := append([]interface{}{now(), "[GF]", file()}, v...)
array := append([]interface{}{now(), "[INTE]", file()}, v...)
array = append(array, "\n"+gdebug.StackWithFilter(gFILTER_KEY))
fmt.Println(array...)
}
@ -71,7 +71,7 @@ func Errorf(format string, v ...interface{}) {
return
}
fmt.Printf(
now()+" [GF] "+file()+" "+format+"\n%s\n",
now()+" [INTE] "+file()+" "+format+"\n%s\n",
append(v, gdebug.StackWithFilter(gFILTER_KEY))...,
)
}