set level to debug
remove a global variable