From: Hypolite Petovan Date: Tue, 10 Mar 2020 22:55:55 +0000 (-0400) Subject: [twitter] Add logging to item deletion X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ceff17469c91503500af6a4e3651bc7ed7c664ea;p=friendica-addons.git [twitter] Add logging to item 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);