From 1ccb5ff87f11f12e29d1f605108e7864a7786ada Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 15 Jun 2023 11:39:35 +0200 Subject: [PATCH] cmd/tools/main.go: use app/log package instead of initialize log here. --- cmd/tools/main.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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")