mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
Output status of append only mode on startup
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user