Skip to content

Commit

Permalink
🔊 Update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkmr-jp committed Jul 23, 2022
1 parent e265b84 commit 162a907
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func Fetch(ctx context.Context, event event.Event) error {
return fmt.Errorf("urls is nil")
}

var success, failure int8
var success, failure uint8
var results Results
for i := range urls {
object := parseURL(urls[i])
Expand All @@ -63,6 +63,8 @@ func Fetch(ctx context.Context, event event.Event) error {
"FETCH_COMPLETE",
zl.Console(fmt.Sprintf("success %d. failure %d.", success, failure)),
zap.String("bucket", bucket),
zap.Uint8("success", success),
zap.String("failure", bucket),
zap.Array("results", results),
)

Expand Down

0 comments on commit 162a907

Please sign in to comment.