Detect heroku and trim logs accordingly