From 2bb76d96d6a287b11904634ad476f0980433aebe Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 19 Apr 2020 16:48:03 +0000 Subject: [PATCH] Improved logging --- src/Model/Tag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Tag.php b/src/Model/Tag.php index ac2600903..7ef4a2d82 100644 --- a/src/Model/Tag.php +++ b/src/Model/Tag.php @@ -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']]); }