def detect_logging_level(self, node):
try:<EOL><INDENT>if self.get_id_attr(node.func.value) == "<STR_LIT>":<EOL><INDENT>return None<EOL><DEDENT>if node.func.attr in LOGGING_LEVELS:<EOL><INDENT>return node.func.attr<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>return None<EOL>
Heuristic to decide whether an AST Call is a logging call.