Logs an exception with full traceback. If format_string is specified, it is formatted with format(*args, **kwargs), and prepended to the exception traceback on a separate line. If exc_info is specified, the exception it describes will be logged. Otherwise, sys.exc_info() - i.e. the
(format_string="", *args, **kwargs)
| 200 | |
| 201 | |
| 202 | def swallow_exception(format_string="", *args, **kwargs): |
| 203 | """Logs an exception with full traceback. |
| 204 | |
| 205 | If format_string is specified, it is formatted with format(*args, **kwargs), and |
| 206 | prepended to the exception traceback on a separate line. |
| 207 | |
| 208 | If exc_info is specified, the exception it describes will be logged. Otherwise, |
| 209 | sys.exc_info() - i.e. the exception being handled currently - will be logged. |
| 210 | |
| 211 | If level is specified, the exception will be logged as a message of that level. |
| 212 | The default is "error". |
| 213 | """ |
| 214 | |
| 215 | _exception(format_string, *args, **kwargs) |
| 216 | |
| 217 | |
| 218 | def reraise_exception(format_string="", *args, **kwargs): |
no test coverage detected
searching dependent graphs…