Only output debugging information from logger if environment dictates