mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-21 21:30:48 +02:00
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:
parent
b3b45ab19e
commit
e14cc292ed
2 changed files with 14 additions and 3 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue