feat: logrus format
This commit is contained in:
parent
6631d4985e
commit
0ea42a3d33
|
@ -14,6 +14,15 @@ var (
|
|||
)
|
||||
|
||||
func init() {
|
||||
logrus.SetFormatter(&logrus.TextFormatter{
|
||||
ForceColors: true,
|
||||
EnvironmentOverrideColors: true,
|
||||
DisableTimestamp: true,
|
||||
DisableSorting: true,
|
||||
DisableLevelTruncation: false,
|
||||
PadLevelText: false,
|
||||
QuoteEmptyFields: false,
|
||||
})
|
||||
rootCmd.AddCommand(bootstrap.Update())
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,8 @@ func Update() *cobra.Command {
|
|||
logrus.Errorf("write config failed: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
logrus.Infof("update success!")
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue