MCPcopy Index your code
hub / github.com/RustPython/RustPython / warning

Method warning

Lib/logging/__init__.py:1524–1534  ·  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

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

Callers 15

warnMethod · 0.95
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
_do_waitMethod · 0.45
_do_waitpidMethod · 0.45
_set_socket_extraFunction · 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