Skip to content

Commit

Permalink
change format
Browse files Browse the repository at this point in the history
  • Loading branch information
tukeJonny committed Sep 3, 2018
1 parent 7016920 commit 3e93fef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import (
)

func init() {
log.SetFormatter(&log.JSONFormatter{})
log.SetFormatter(&log.TextFormatter{
DisableColors: false,
FullTimestamp: true,
})
log.SetLevel(log.DebugLevel)
}

Expand All @@ -34,7 +37,7 @@ func MySQLWarmUp(config mysql.Config) {
}

for _, table := range tables {
log.Infof("[*] Warming up %s ...\n", table.Name)
log.Infof("[*] Warming up %s ...", table.Name)
// インデックスが無ければ次のテーブルへ
if len(table.Indexes) == 0 {
log.Warnf("[!] Skip %s", table.Name)
Expand Down

0 comments on commit 3e93fef

Please sign in to comment.