Skip to content

Commit

Permalink
Output status of append only mode on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
rawtaz committed Jul 28, 2024
1 parent 664d997 commit eed4ee3
Showing 1 changed file with 6 additions and 0 deletions.
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 eed4ee3

Please sign in to comment.