Log 'msg % args' at level 'level' only if condition is fulfilled.
(level, msg, condition, *args)
| 185 | |
| 186 | |
| 187 | def log_if(level, msg, condition, *args): |
| 188 | """Log 'msg % args' at level 'level' only if condition is fulfilled.""" |
| 189 | if condition: |
| 190 | vlog(level, msg, *args) |
| 191 | |
| 192 | |
| 193 | def _GetFileAndLine(): |
no test coverage detected
searching dependent graphs…