Skip to content

Commit

Permalink
TASK: Add logger for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Sep 15, 2021
1 parent a31bc25 commit 2b8b43f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Classes/Service/AssetIntegrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Neos\Media\Domain\Model\AssetVariantInterface;
use Neos\Media\Domain\Model\ImageInterface;
use Neos\Neos\Controller\CreateContentContextTrait;
use Psr\Log\LoggerInterface;

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

/**
* @Flow\Inject(name="Flowpack.Neos.AssetUsage:Logger")
* @var LoggerInterface
*/
protected $assetUsageLogger;

private $assetPropertiesByNodeType = [];

public function assetRemoved(AssetInterface $asset): void
Expand Down

0 comments on commit 2b8b43f

Please sign in to comment.