fix log LDate
This commit is contained in:
parent
35264de429
commit
6c58e35ad1
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue