I notice you're using strings for the levels (`'DEBUG'`) instead of the variables defined above (`DEBUG`). Probably best to do the latter.