(state int, err error)
| 1545 | } |
| 1546 | |
| 1547 | func (e *Extractor) onError(state int, err error) { |
| 1548 | e.logger.Error("onError", "err", err, "hasShutdown", e.shutdown) |
| 1549 | if e.shutdown { |
| 1550 | return |
| 1551 | } |
| 1552 | common.WriteWaitCh(e.waitCh, &drivers.ExitResult{ |
| 1553 | ExitCode: state, |
| 1554 | Signal: 0, |
| 1555 | OOMKilled: false, |
| 1556 | Err: err, |
| 1557 | }) |
| 1558 | _ = e.Shutdown() |
| 1559 | } |
| 1560 | // Shutdown is used to tear down the extractor |
| 1561 | func (e *Extractor) Shutdown() error { |
| 1562 | e.logger.Debug("extractor shutdown") |
no test coverage detected