From ed89a22995a2b3914c4afa26fa420719e7061f56 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 9 Feb 2019 08:34:54 -0500 Subject: [PATCH] Add context to some logger calls in ActivityPub\Processor --- src/Protocol/ActivityPub/Processor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index ef351f30de..6d94b1b49e 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -131,7 +131,7 @@ class Processor { $item = Item::selectFirst(['uri', 'parent-uri', 'gravity'], ['uri' => $activity['id']]); if (!DBA::isResult($item)) { - Logger::warning('Unknown item with uri: ' . $activity['id']); + Logger::warning('Unknown item', ['uri' => $activity['id']]); return; } @@ -148,7 +148,7 @@ class Processor if (($item['parent-uri'] != $item['uri']) && ($item['gravity'] == GRAVITY_COMMENT)) { $parent = Item::selectFirst(['id', 'author-link', 'alias'], ['uri' => $item['parent-uri']]); if (!DBA::isResult($parent)) { - Logger::warning('Unknown item parent with uri: ' . $item['parent-uri']); + Logger::warning('Unknown parent item.', ['uri' => $item['parent-uri']]); return; } -- 2.39.5