fix log LDate

This commit is contained in:
Urko 2023-07-26 12:38:34 +02:00
parent 35264de429
commit 6c58e35ad1
3 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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)