From 6c58e35ad1c38e144af42a5e27a4f4cbbcb7cf81 Mon Sep 17 00:00:00 2001 From: Urko Date: Wed, 26 Jul 2023 12:38:34 +0200 Subject: [PATCH] fix log LDate --- cmd/cleanup.go | 2 +- cmd/duplicate_versions.go | 2 +- cmd/sync.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/cleanup.go b/cmd/cleanup.go index dcf3d42..6f0cacd 100644 --- a/cmd/cleanup.go +++ b/cmd/cleanup.go @@ -14,7 +14,7 @@ var Cleanup = &cobra.Command{ Use: "cleanup", Short: "Handle clenaup for multiple versions of file in Backblaze", Run: func(cmd *cobra.Command, args []string) { - log.SetFlags(log.Lmicroseconds) + log.SetFlags(log.Ldate) ctx, cancel := context.WithCancel(signalContext(cmd.Context())) defer cancel() diff --git a/cmd/duplicate_versions.go b/cmd/duplicate_versions.go index 25ee783..a0f1fdc 100644 --- a/cmd/duplicate_versions.go +++ b/cmd/duplicate_versions.go @@ -16,7 +16,7 @@ var Versions = &cobra.Command{ Use: "versions", Short: "Handle versions of files in Backblaze", Run: func(cmd *cobra.Command, args []string) { - log.SetFlags(log.Lmicroseconds) + log.SetFlags(log.Ldate) ctx, cancel := context.WithCancel(signalContext(cmd.Context())) defer cancel() diff --git a/cmd/sync.go b/cmd/sync.go index ca8e9bf..f5f4e0b 100644 --- a/cmd/sync.go +++ b/cmd/sync.go @@ -18,7 +18,7 @@ var Sync = &cobra.Command{ ctx, cancel := context.WithCancel(signalContext(cmd.Context())) defer cancel() - log.SetFlags(log.Lmicroseconds) + log.SetFlags(log.Ldate) filePath, err := cmd.Flags().GetString("file") if err != nil { log.Fatalln("file %w", err)