Commit b0b8d188 authored by Adrian Sutton's avatar Adrian Sutton Committed by GitHub

op-supervisor: Fix log to use labels instead of printf style (#11103)

parent f269f3f3
......@@ -52,7 +52,7 @@ func NewEntryDB(logger log.Logger, path string) (*EntryDB, error) {
size: size,
}
if size*EntrySize != info.Size() {
logger.Warn("File size (%v) is nut a multiple of entry size %v. Truncating to last complete entry", size, EntrySize)
logger.Warn("File size is nut a multiple of entry size. Truncating to last complete entry", "fileSize", size, "entrySize", EntrySize)
if err := db.recover(); err != nil {
return nil, fmt.Errorf("failed to recover database at %v: %w", path, err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment