log exceptions to console when DEBUG is True