Skip to content

Commit

Permalink
Merge pull request #295 from restic/append-only-status
Browse files Browse the repository at this point in the history
Output status of append only mode on startup
  • Loading branch information
MichaelEischer authored Jul 29, 2024
2 parents 664d997 + da5bb66 commit e35c6e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/pull-295
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Output status of append only mode on startup

Rest-server now outputs whether append only mode has been enabled on startup.

https://github.com/restic/rest-server/pull/295
6 changes: 6 additions & 0 deletions cmd/rest-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ func (app *restServerApp) runRoot(cmd *cobra.Command, args []string) error {
log.Fatalf("error: %v", err)
}

if app.Server.AppendOnly {
log.Println("Append only mode enabled")
} else {
log.Println("Append only mode disabled")
}

if app.Server.PrivateRepos {
log.Println("Private repositories enabled")
} else {
Expand Down

0 comments on commit e35c6e3

Please sign in to comment.