Prioritize env.diagnostics over env.debug