Skip to content

Commit 41a1d8e

Browse files
committed
fix uploadLogView() to upload to r2 instead of backblaze
1 parent 392dbee commit 41a1d8e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

do/upload_storage.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,12 @@ func uploadLogView() {
527527
logf("uploadLogView\n")
528528
ver := extractLogViewVersion()
529529
path := filepath.Join("tools", "logview", "build", "bin", "logview.exe")
530-
panicIf(!fileExists(path), "file '%s' doesn't exist", path)
531-
remotePath := "software/logview/rel/" + fmt.Sprintf("logview-%s.exe", ver)
532-
mc := newMinioBackblazeClient()
530+
if !fileExists(path) {
531+
logf("file '%s' doesn't exist\n", path)
532+
os.Exit(1)
533+
}
534+
remotePath := fmt.Sprintf("software/logview/rel/logview-%s.exe", ver)
535+
mc := newMinioR2Client()
533536
if mc.Exists(remotePath) {
534537
logf("%s (%s) already uploaded\n", remotePath, mc.URLForPath(remotePath))
535538
return

0 commit comments

Comments
 (0)