Skip to content

Commit

Permalink
Log a message when a URI is reloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Feb 28, 2019
1 parent d8bca8b commit 2949079
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apisprout.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ func server(cmd *cobra.Command, args []string) {
swagger, router = load(uri, data)
w.WriteHeader(200)
w.Write([]byte("reloaded"))
log.Printf("Reloaded from %s", uri)
})
}

Expand Down

0 comments on commit 2949079

Please sign in to comment.