Skip to content

Commit

Permalink
change internal log prefix from '[GF]' to '[INTE]'
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn committed Feb 26, 2020
1 parent 6317d9d commit 87cd070
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ branches:
- staging

env:
- GF_DEV=1 GO111MODULE=on
- GF_DEBUG=1 GO111MODULE=on

services:
- mysql
Expand Down
8 changes: 4 additions & 4 deletions internal/intlog/intlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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...)
}
Expand All @@ -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))...,
)
}
Expand Down

0 comments on commit 87cd070

Please sign in to comment.