]> git.mxchange.org Git - friendica.git/commitdiff
Added logging
authorMichael <heluecht@pirati.ca>
Tue, 21 Jul 2020 18:30:45 +0000 (18:30 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 21 Jul 2020 18:30:45 +0000 (18:30 +0000)
src/Model/Item.php

index 39fb3cb54c1b5aac8690afcef40edbfba19b7c8c..96aeb638164f2b96d5ce6ebf26f598fdb5120573 100644 (file)
@@ -2199,9 +2199,11 @@ class Item
                        $item['contact-id'] = $contact['id'];
                } else {
                        // Shouldn't happen at all
+                       Logger::warning('contact-id could not be fetched', ['uid' => $uid, 'item' => $item]);
                        $self = DBA::selectFirst('contact', ['id'], ['self' => true, 'uid' => $uid]);
                        if (!DBA::isResult($self)) {
                                // Shouldn't happen even less
+                               Logger::warning('self contact could not be fetched', ['uid' => $uid, 'item' => $item]);
                                return 0;
                        }
                        $item['contact-id'] = $self['id'];