noahd1 / oink

Log parser to identify actions which significantly increase VM heap size
MIT License
1.18k stars 71 forks source link

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

Closed salimane closed 4 years ago

salimane commented 10 years ago

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