properly change global logging level