| @@ -569,9 +569,14 @@ | ||
| 569 | 569 | $document->update_meta( self::META_KEY, $usage ); |
| 570 | 570 | |
| 571 | 571 | $this->add_to_global( $document->get_name(), $usage ); |
| 572 | 572 | } catch ( \Exception $exception ) { |
| 573 | - return; // Do nothing. | |
| 573 | + Plugin::$instance->logger->get_logger()->error( $exception->getMessage(), [ | |
| 574 | + 'document_id' => $document->get_id(), | |
| 575 | + 'document_name' => $document->get_name(), | |
| 576 | + ] ); | |
| 577 | + | |
| 578 | + return; | |
| 574 | 579 | }; |
| 575 | 580 | } |
| 576 | 581 | } |
| 577 | 582 | |