Skip to content

Commit

Permalink
Write the listening address directly into the log without a prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgelbg committed Jun 22, 2020
1 parent 94986c6 commit 99330d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
)

var (
ctx = context.TODO()
ctx = context.Background()
authDomain = os.Getenv("AUTHDOMAIN")
certsURL = fmt.Sprintf("%s/cdn-cgi/access/certs", authDomain)

Expand Down Expand Up @@ -111,7 +111,7 @@ func main() {
proxy.ServeHTTP(w, r)
})))

log.Printf("Listening on http://%s/", listenAddr)
log.Printf("Listening on %s", listenAddr)
if err := http.ListenAndServe(listenAddr, nil); err != nil {
log.Fatalf("Unable to start server on [%s], error: %s", listenAddr, err.Error())
}
Expand Down

0 comments on commit 99330d8

Please # to comment.