Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add various middleware to app. #1234

Merged
merged 6 commits into from
Apr 6, 2016
Merged

Add various middleware to app. #1234

merged 6 commits into from
Apr 6, 2016

Conversation

tomwilkie
Copy link
Contributor

  • Add option for logging each HTTP request.
  • Update gorilla mux and undo hacks from Less hacky fix for /%2F bug #806
  • Print command line when launching the app (unrelated, but tiny and useful)
  • Instrument the app with prometheus metrics.

@tomwilkie tomwilkie changed the title Add various middleware to app. [WIP] Add various middleware to app. Apr 6, 2016
@tomwilkie tomwilkie self-assigned this Apr 6, 2016
@tomwilkie tomwilkie changed the title [WIP] Add various middleware to app. Add various middleware to app. Apr 6, 2016
@tomwilkie tomwilkie assigned paulbellamy and unassigned tomwilkie Apr 6, 2016
listen = flag.String("http.address", ":"+strconv.Itoa(xfer.AppPort), "webserver listen address")
logLevel = flag.String("log.level", "info", "logging threshold level: debug|info|warn|error|fatal|panic")
logPrefix = flag.String("log.prefix", "<app>", "prefix for each log line")
logRequests = flag.Bool("log.requests", false, "Log individual HTTP requests")

This comment was marked as abuse.

@paulbellamy paulbellamy assigned tomwilkie and unassigned paulbellamy Apr 6, 2016
@paulbellamy paulbellamy merged commit 945029c into master Apr 6, 2016
@paulbellamy paulbellamy deleted the middleware branch April 6, 2016 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants