Merge pull request #295 from restic/append-only-status

Output status of append only mode on startup
This commit is contained in:
Michael Eischer 2024-07-29 19:36:59 +02:00 committed by GitHub
commit e35c6e39d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View file

@ -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

View file

@ -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 {