Switch logging to only print to console when the DEBUG environment variable is set