| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 36 | public function writeEvent( LoggingEvent $event, Bucket ...$buckets ): void { |
|
| 25 | 36 | if ( $this->caughtException !== null ) { |
|
| 26 | 2 | return; |
|
| 27 | } |
||
| 28 | try { |
||
| 29 | 36 | $this->bucketLogger->writeEvent( $event, ...$buckets ); |
|
| 30 | 2 | } catch ( LoggingError $error ) { |
|
| 31 | 2 | $this->caughtException = $error; |
|
| 32 | 2 | $this->errorLogging->error( $error->getMessage(), [ 'exception' => $error ] ); |
|
| 33 | } |
||
| 36 | } |