Add a check for a DEBUG env var to make debugging  in production easier