]> git.mxchange.org Git - friendica.git/commitdiff
Improved logging
authorMichael <heluecht@pirati.ca>
Sun, 19 Apr 2020 16:48:03 +0000 (16:48 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 19 Apr 2020 16:48:03 +0000 (16:48 +0000)
src/Model/Tag.php

index ac2600903391c1cd275bfa0ff417e5f5278862cf..7ef4a2d82e220266d27e3b8a20231ba3e8e3994b 100644 (file)
@@ -117,7 +117,7 @@ class Tag
 
                DBA::insert('post-tag', ['uri-id' => $uriid, 'type' => $type, 'tid' => $tagid, 'cid' => $cid], true);
 
-               Logger::info('Stored tag/mention', ['uri-id' => $uriid, 'tag-id' => $tagid, 'contact-id' => $cid]);
+               Logger::info('Stored tag/mention', ['uri-id' => $uriid, 'tag-id' => $tagid, 'contact-id' => $cid, 'callstack' => System::callstack(8)]);
        }
 
        /**
@@ -206,7 +206,7 @@ class Tag
                if (!DBA::isResult($tag)) {
                        return;
                }
-               Logger::info('Removing tag/mention', ['uri-id' => $uriid, 'tid' => $tag['id'], 'name' => $name, 'url' => $url]);
+               Logger::info('Removing tag/mention', ['uri-id' => $uriid, 'tid' => $tag['id'], 'name' => $name, 'url' => $url, 'callstack' => System::callstack(8)]);
                DBA::delete('post-tag', ['uri-id' => $uriid, 'tid' => $tag['id']]);
        }