def check_exc_info(self, node):
if self.current_logging_level not in ('<STR_LIT:error>', '<STR_LIT>'):<EOL><INDENT>return<EOL><DEDENT>for kw in node.keywords:<EOL><INDENT>if kw.arg == '<STR_LIT>':<EOL><INDENT>if self.current_logging_level == '<STR_LIT:error>':<EOL><INDENT>violation = ERROR_EXC_INFO_VIOLATION<EOL><DEDENT>else:<EOL><INDENT>violation = REDUNDANT_EXC_INFO_VIOLATION<EOL><DEDENT>self.violations.append((node, violation))<EOL><DEDENT><DEDENT>
Reports a violation if exc_info keyword is used with logging.error or logging.exception.