mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
cmd/tools/main.go: fix log time format.
This commit is contained in:
parent
52488277cb
commit
5c6ab2e846
1 changed files with 10 additions and 0 deletions
|
|
@ -16,6 +16,16 @@ var rootCmd = &cobra.Command{
|
|||
Version: VersionString,
|
||||
}
|
||||
|
||||
func init() {
|
||||
// Initialize logger
|
||||
formatter := log.TextFormatter{
|
||||
FullTimestamp: true,
|
||||
TimestampFormat: "2006-01-02 15:04:05.0000",
|
||||
}
|
||||
|
||||
log.SetFormatter(&formatter)
|
||||
}
|
||||
|
||||
func main() {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
log.WithError(err).Fatal("Application error")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue