Skip to content

Commit 2b8b43f

Browse files
committed
TASK: Add logger for easier debugging
1 parent a31bc25 commit 2b8b43f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Classes/Service/AssetIntegrationService.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Neos\Media\Domain\Model\AssetVariantInterface;
2525
use Neos\Media\Domain\Model\ImageInterface;
2626
use Neos\Neos\Controller\CreateContentContextTrait;
27+
use Psr\Log\LoggerInterface;
2728

2829
/**
2930
* Monitors changes to assets which are used in Neos CR nodes
@@ -46,6 +47,12 @@ final class AssetIntegrationService
4647
*/
4748
protected $assetUsageService;
4849

50+
/**
51+
* @Flow\Inject(name="Flowpack.Neos.AssetUsage:Logger")
52+
* @var LoggerInterface
53+
*/
54+
protected $assetUsageLogger;
55+
4956
private $assetPropertiesByNodeType = [];
5057

5158
public function assetRemoved(AssetInterface $asset): void

0 commit comments

Comments
 (0)