(task, einfo, exc)
| 135 | |
| 136 | |
| 137 | def get_log_policy(task, einfo, exc): |
| 138 | if isinstance(exc, Reject): |
| 139 | return log_policy_reject |
| 140 | elif isinstance(exc, Ignore): |
| 141 | return log_policy_ignore |
| 142 | elif einfo.internal: |
| 143 | return log_policy_internal |
| 144 | else: |
| 145 | if task.throws and isinstance(exc, task.throws): |
| 146 | return log_policy_expected |
| 147 | return log_policy_unexpected |
| 148 | |
| 149 | |
| 150 | def get_task_name(request, default): |
no outgoing calls