diff --git a/cmd/cleanup.go b/cmd/cleanup.go index 6f0cacd..47b29fc 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.Ldate) + log.SetFlags(log.Ldate | log.Lmicroseconds) ctx, cancel := context.WithCancel(signalContext(cmd.Context())) defer cancel() diff --git a/cmd/duplicate_versions.go b/cmd/duplicate_versions.go index a0f1fdc..30b04e2 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.Ldate) + log.SetFlags(log.Ldate | log.Lmicroseconds) ctx, cancel := context.WithCancel(signalContext(cmd.Context())) defer cancel() diff --git a/cmd/sync.go b/cmd/sync.go index f5f4e0b..1be49c3 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.Ldate) + log.SetFlags(log.Ldate | log.Lmicroseconds) filePath, err := cmd.Flags().GetString("file") if err != nil { log.Fatalln("file %w", err)