1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

cmd/tools/main.go: use app/log package instead of initialize log here.

This commit is contained in:
Henrik Hautakoski 2023-06-15 11:39:35 +02:00
parent 5834e60633
commit 1ccb5ff87f

View file

@ -5,6 +5,7 @@ import (
"github.com/spf13/cobra"
_ "github.com/eosswedenorg/thalos/app/log"
log "github.com/sirupsen/logrus"
)
@ -16,16 +17,6 @@ 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")