Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

box, serve s3: fix log messages with bad format strings

Nick Craig-Wood1c3e432c3fdb
diff --git a/backend/box/box.go b/backend/box/box.go
index 35ee52c27..7ad816ceb 100644
--- a/backend/box/box.go
+++ b/backend/box/box.go
@@ -1461,7 +1461,7 @@ func (f *Fs) changeNotifyRunner(ctx context.Context, notifyFunc func(string, fs.
// Item in the cache has the same or newer SequenceID than
// this event. Ignore this event, it must be old.
f.itemMetaCacheMu.Unlock()
- fs.Debugf(f, "%s ignored due to old SequenceID (%q)", eventDetails, itemMeta.SequenceID)
+ fs.Debugf(f, "%s ignored due to old SequenceID (%d)", eventDetails, itemMeta.SequenceID)
continue
}
diff --git a/cmd/serve/s3/logger.go b/cmd/serve/s3/logger.go
index cb0337f95..73afc5bdf 100644
--- a/cmd/serve/s3/logger.go
+++ b/cmd/serve/s3/logger.go
@@ -26,10 +26,10 @@ func (l logger) Print(level gofakes3.LogLevel, v ...any) {
default:
fallthrough
case gofakes3.LogErr:
- fs.Errorf("serve s3", s)
+ fs.Errorf("serve s3", "%s", s)
case gofakes3.LogWarn:
- fs.Infof("serve s3", s)
+ fs.Infof("serve s3", "%s", s)
case gofakes3.LogInfo:
- fs.Debugf("serve s3", s)
+ fs.Debugf("serve s3", "%s", s)
}
}