diff --git a/changelog/unreleased/pull-295 b/changelog/unreleased/pull-295 new file mode 100644 index 00000000..5ad31f36 --- /dev/null +++ b/changelog/unreleased/pull-295 @@ -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 diff --git a/cmd/rest-server/main.go b/cmd/rest-server/main.go index 451d093c..0bdd1ebc 100644 --- a/cmd/rest-server/main.go +++ b/cmd/rest-server/main.go @@ -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 {