Logs an error. Returns the output wrapped in AssertionError. Thus, the following:: raise log.error(s, ...) has the same effect as:: log.error(...) assert False, (s.format(...))
(*args, **kwargs)
| 163 | |
| 164 | |
| 165 | def error(*args, **kwargs): |
| 166 | """Logs an error. |
| 167 | |
| 168 | Returns the output wrapped in AssertionError. Thus, the following:: |
| 169 | |
| 170 | raise log.error(s, ...) |
| 171 | |
| 172 | has the same effect as:: |
| 173 | |
| 174 | log.error(...) |
| 175 | assert False, (s.format(...)) |
| 176 | """ |
| 177 | return AssertionError(write_format("error", *args, **kwargs)) |
| 178 | |
| 179 | |
| 180 | def _exception(format_string="", *args, **kwargs): |
no test coverage detected
searching dependent graphs…