MCPcopy Index your code
hub / github.com/python/cpython / warning

Method warning

Lib/logging/__init__.py:1525–1535  ·  view source on GitHub ↗

Log 'msg % args' with severity 'WARNING'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.warning("Houston, we have a %s", "bit of a problem", exc_info=True)

(self, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

1523 self._log(INFO, msg, args, **kwargs)
1524
1525 def warning(self, msg, *args, **kwargs):
1526 """
1527 Log 'msg % args' with severity 'WARNING'.
1528
1529 To pass exception information, use the keyword argument exc_info with
1530 a true value, e.g.
1531
1532 logger.warning("Houston, we have a %s", "bit of a problem", exc_info=True)
1533 """
1534 if self.isEnabledFor(WARNING):
1535 self._log(WARNING, msg, args, **kwargs)
1536
1537 def warn(self, msg, *args, **kwargs):
1538 warnings.warn("The 'warn' method is deprecated, "

Callers 15

warnMethod · 0.95
write_documentsMethod · 0.45
parse_platformsMethod · 0.45
_check_args_matchMethod · 0.45
writeMethod · 0.45
writelinesMethod · 0.45
sendtoMethod · 0.45
_write_appdataMethod · 0.45
_call_eof_receivedMethod · 0.45
loop_accept_pipeMethod · 0.45
closeMethod · 0.45
writeMethod · 0.45

Calls 2

isEnabledForMethod · 0.95
_logMethod · 0.95

Tested by 15

tearDownModuleFunction · 0.36
test_flatMethod · 0.36
test_nested_explicitMethod · 0.36
test_nested_inheritedMethod · 0.36
test_flushMethod · 0.36
test_config_10_okMethod · 0.36
test_config14_okMethod · 0.36