Skip to content

Commit

Permalink
updated log-level bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rem7 committed Mar 19, 2024
1 parent 759deb2 commit f48206a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/s3tar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ func run(args []string) error {
},
Action: func(cCtx *cli.Context) error {
logLevel := parseLogLevel(cCtx.Count("verbose"))
fmt.Printf("log-level: %d\n", logLevel)
fmt.Printf("goroutines: %d\n", threads)
if region == "" && !generateToc {
exitError(1, "region is missing\n")
}
Expand Down Expand Up @@ -416,7 +418,7 @@ func s3Client(ctx context.Context, opts ...func(*config.LoadOptions) error) *s3.
}

func parseLogLevel(count int) int {
verboseCount := count - 1
verboseCount := count
if verboseCount < 0 {
verboseCount = 0
}
Expand Down

0 comments on commit f48206a

Please sign in to comment.