| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function write($object) |
||
| 32 | { |
||
| 33 | try { |
||
| 34 | $this->logger->info('Event recorded', $this->converter->toArray($object)); |
||
| 35 | |||
| 36 | } catch (DataToConvertIsNotAnObject $e) { |
||
| 37 | $this->handleError(sprintf('Data conversion problem during writing to logstash: %s', $e->getMessage())); |
||
| 38 | } catch (\Exception $e) { |
||
| 39 | $this->handleError(sprintf('Connection with logstash error: %s', $e->getMessage())); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 48 |