Update for backwards compatibility. Scope debug output by environment.