feat: improve HTTP API logging, honor no-startup-message (#1091)

Co-authored-by: nils måsén <nils@piksel.se>
This commit is contained in:
Juho-Pekka Kuitunen 2021-11-29 16:07:26 +02:00 committed by GitHub
parent b3b45ab19e
commit e14cc292ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 3 deletions

View file

@ -62,7 +62,6 @@ func (api *API) Start(block bool) error {
log.Fatal(tokenMissingMsg)
}
log.Info("Watchtower HTTP API started.")
if block {
runHTTPServer()
} else {
@ -74,6 +73,5 @@ func (api *API) Start(block bool) error {
}
func runHTTPServer() {
log.Info("Serving HTTP")
log.Fatal(http.ListenAndServe(":8080", nil))
}