mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
Add debug for item deletion
This commit is contained in:
parent
b1b6533512
commit
25dceccf77
4 changed files with 10 additions and 5 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Model\Item;
|
||||
|
@ -42,6 +43,7 @@ class RemoveContact {
|
|||
do {
|
||||
$items = Item::select(['id'], $condition, ['limit' => 100]);
|
||||
while ($item = Item::fetch($items)) {
|
||||
Logger::notice('Delete removed contact item', ['id' => $item["id"]]);
|
||||
DBA::delete('item', ['id' => $item['id']]);
|
||||
}
|
||||
DBA::close($items);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue