def _log_level_changed(self, name, old, new):
if isinstance(new, str):<EOL><INDENT>new = getattr(logging, new)<EOL>self.log_level = new<EOL><DEDENT>self.log.setLevel(new)<EOL>
Adjust the log level when log_level is set.