def _log_msg(self, msg, ok):
if self._config['<STR_LIT>']:<EOL><INDENT>CGREEN, CRED, CEND = '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>CGREEN = CRED = CEND = '<STR_LIT>'<EOL><DEDENT>LOG_LEVELS = {False: logging.ERROR, True: logging.INFO}<EOL>L.log(LOG_LEVELS[ok],<EOL>'<STR_LIT>' + CEND, msg, CGREEN + '<STR_LIT>' if ok else CRED + '<STR_LIT>')<EOL>
Helper to log message to the right level