From ceff17469c91503500af6a4e3651bc7ed7c664ea Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 10 Mar 2020 18:55:55 -0400 Subject: [PATCH] [twitter] Add logging to item deletion --- twitter/twitter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 5bd0206f..da8c3b36 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -808,8 +808,9 @@ function twitter_expire(App $a) return; } - $r = Item::select(['id'], ['deleted' => true, 'network' => Protocol::TWITTER]); + $r = Item::select(['id', 'guid'], ['deleted' => true, 'network' => Protocol::TWITTER]); while ($row = DBA::fetch($r)) { + Logger::info('[twitter] Delete expired item', ['id' => $row['id'], 'guid' => $row['guid'], 'callstack' => \Friendica\Core\System::callstack()]); DBA::delete('item', ['id' => $row['id']]); } DBA::close($r); -- 2.39.5