(stage, reason string, taskErr *dto.TaskError, durable bool)
| 129 | } |
| 130 | |
| 131 | func (d taskPluginSubmitDiagnostics) failed(stage, reason string, taskErr *dto.TaskError, durable bool) { |
| 132 | if d.pluginKey == "" { |
| 133 | return |
| 134 | } |
| 135 | code := "" |
| 136 | status := 0 |
| 137 | local := true |
| 138 | if taskErr != nil { |
| 139 | code = taskErr.Code |
| 140 | status = taskErr.StatusCode |
| 141 | local = taskErr.LocalError |
| 142 | } |
| 143 | logger.LogDebug( |
| 144 | d.context, |
| 145 | "task_plugin subsystem=submit event=failed generation=%d plugin=%q stage=%q reason=%q code=%q status=%d local=%t durable=%t", |
| 146 | d.generation, |
| 147 | d.pluginKey, |
| 148 | stage, |
| 149 | reason, |
| 150 | code, |
| 151 | status, |
| 152 | local, |
| 153 | durable, |
| 154 | ) |
| 155 | } |
| 156 | |
| 157 | func (d taskPluginSubmitDiagnostics) reserve(event string, quota int) { |
| 158 | if d.pluginKey == "" { |
no test coverage detected