Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save blasterpal/1081359 to your computer and use it in GitHub Desktop.

Select an option

Save blasterpal/1081359 to your computer and use it in GitHub Desktop.
Remove Exception Block from standard Rails logs
#example to remove PageNotFoundError from logs for cleaning up
sed '/ApplicationController::PageNotFoundError (ApplicationController::PageNotFoundError):/,/^\W*$/d' production.log.cleaned.app01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment