Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
edeustace committed Mar 25, 2024
1 parent 6ad4454 commit 4057299
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions server/esm_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func esmHandler() rex.Handle {

return func(ctx *rex.Context) interface{} {
pathname := ctx.Path.String()

log.Debugf("[esmHandler] pathname: %s", pathname)
userAgent := ctx.R.UserAgent()
header := ctx.W.Header()
cdnOrigin := getCdnOrign(ctx)
Expand Down
7 changes: 6 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func Serve(efs EmbedFS) {
fmt.Println(err.Error())
os.Exit(1)
}

if isDev {
log.Debugf("Config: %+v", cfg)

}
fmt.Println("Config loaded from", cfile)
}

Expand Down Expand Up @@ -162,7 +167,7 @@ func Serve(efs EmbedFS) {
})

if isDev {
log.Debugf("Server is ready on http://localhost:%d", cfg.Port)
log.Infof("Server is ready on http://localhost:%d", cfg.Port)
log.Debugf("Testing page at http://localhost:%d?test", cfg.Port)
} else {
log.Info("Server is ready")
Expand Down

0 comments on commit 4057299

Please sign in to comment.