Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func runServer() {
os.Exit(1)
}

if readOnly {
if readOnly && debug {
fmt.Fprintf(os.Stderr, "[INFO] Read-only mode enabled: cache reads allowed, writes skipped\n")
}

Expand Down Expand Up @@ -397,7 +397,9 @@ func createBackend() (backends.Backend, error) {
Level: logLevel,
}))
backend = backends.NewAsyncBackendWriter(backend, logger)
fmt.Fprintf(os.Stderr, "[INFO] Async backend writer enabled\n")
if debug {
fmt.Fprintf(os.Stderr, "[INFO] Async backend writer enabled\n")
}
}

// Wrap with debug backend if debug mode is enabled
Expand Down