diff --git a/cmd/tools/main.go b/cmd/tools/main.go index 66b8ef7..0f10ea5 100644 --- a/cmd/tools/main.go +++ b/cmd/tools/main.go @@ -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")