Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
JameyWoo committed May 30, 2020
1 parent 33668ee commit fc84a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinykv.go
Expand Up @@ -47,7 +47,7 @@ type MyFormatter struct{}

func (s *MyFormatter) Format(entry *logrus.Entry) ([]byte, error) {
timestamp := time.Now().Local().Format("2006/01/02 15:04:05")
fmt.Println(entry.Caller.File)
//fmt.Println(entry.Caller.File)
fullPath := strings.Split(entry.Caller.File, "/")
path := fullPath[len(fullPath) - 1] + ":" + strconv.Itoa(entry.Caller.Line)
msg := fmt.Sprintf("%s %8s %15s\t %s\n",
Expand Down

0 comments on commit fc84a81

Please sign in to comment.