add optional config variable path to use request path instead of controller action #30

Open
wants to merge 1 commit into
from

Projects

None yet

1 participant

@salimane
salimane commented Feb 4, 2014

This pr adds an optional config variable path that is boolean so that instead of logging requests controller#action, you can specify that you want to log ENV['PATH_INFO'] instead.

So you just do Rails.application.middleware.use( Oink::Middleware, :path => true ) and then oink will log "Oink Path: /no_pigs" instead of "Oink Action: oinkoink#piggie"

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment