debug_level shouldn't be a bool, it's likely an int (semantically speaking). In this case it's probably just a typo, and you meant to say debug, right?