Skip to content

Commit

Permalink
アップロードの開始と成功のログのログレベルを info に変更する
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed Oct 20, 2023
1 parent 0bee93b commit fb1d357
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func uploadWebMFile(ctx context.Context, osConfig *s3.S3CompatibleObjectStorage,
return "", err
}

zlog.Debug().
zlog.Info().
Str("dst", dst).
Msg("WEB-UPLOAD-START")
n, err := s3Client.FPutObject(ctx,
Expand All @@ -95,7 +95,7 @@ func uploadWebMFile(ctx context.Context, osConfig *s3.S3CompatibleObjectStorage,
if err != nil {
return "", err
}
zlog.Debug().
zlog.Info().
Str("dst", dst).
Int64("size", n.Size).
Msg("UPLOAD-WEBM-SUCCESSFULLY")
Expand Down Expand Up @@ -175,7 +175,7 @@ func uploadWebMFileWithRateLimit(ctx context.Context, osConfig *s3.S3CompatibleO
// Save the file size.
fileSize := fileStat.Size()

zlog.Debug().
zlog.Info().
Str("dst", dst).
Msg("WEB-UPLOAD-START")

Expand All @@ -186,7 +186,7 @@ func uploadWebMFileWithRateLimit(ctx context.Context, osConfig *s3.S3CompatibleO
return "", err
}

zlog.Debug().
zlog.Info().
Str("dst", dst).
Int64("size", n.Size).
Msg("UPLOAD-WEBM-SUCCESSFULLY")
Expand Down

0 comments on commit fb1d357

Please sign in to comment.