Skip to content

Commit

Permalink
Merge pull request #11 from issmirnov/hotfix
Browse files Browse the repository at this point in the history
Fix critical bug in zap.
  • Loading branch information
issmirnov committed Jun 9, 2017
2 parents f911665 + 1c3d967 commit c01a01b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ func main() {
router.Handler("GET", "/varz", ctxWrapper{context, VarsHandler})
router.HandlerFunc("GET", "/healthz", HealthHandler)

// https://github.com/julienschmidt/httprouter is having issues with
// wildcard handling. As a result, we have to register index handler
// as the fallback. Fix incoming.
router.NotFound = ctxWrapper{context, IndexHandler}

// TODO check for errors - addr in use, sudo issues, etc.
fmt.Printf("Launching %s on %s:%d\n", appName, *host, *port)
log.Fatal(http.ListenAndServe(fmt.Sprintf("%s:%d", *host, *port), router))
Expand Down

0 comments on commit c01a01b

Please sign in to comment.