Why doesn't use `if log_level = conf['log_level']` instead of `if conf['log_level']`?
Line 32 refers `conf['log_level']` again.