jenkins-bot has submitted this change and it was merged.

Change subject: Include ParserCache::save() backtrace in MF pollution debug log
......................................................................


Include ParserCache::save() backtrace in MF pollution debug log

Bug: T124356
Change-Id: I8c6514f21e5ea2b1f607fa859d4498fd7a3d39a6
---
M includes/parser/ParserCache.php
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php
index 89a3f3b..b852db0 100644
--- a/includes/parser/ParserCache.php
+++ b/includes/parser/ParserCache.php
@@ -263,7 +263,9 @@
                                !== false ) {
                                wfDebugLog( 'T124356', "MF pollution 
({$page->getId()}): getText called from: " . (
                                        $parserOutput->debug_gettext_trace ?
-                                       implode( ', ', 
$parserOutput->debug_gettext_trace ) : 'nowhere' ) );
+                                       implode( ', ', 
$parserOutput->debug_gettext_trace ) : 'nowhere' ) .
+                                       ', save from ' . wfGetAllCallers( false 
)
+                               );
                        }
                        $cacheTime = $cacheTime ?: wfTimestampNow();
                        if ( !$revId ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/273834
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8c6514f21e5ea2b1f607fa859d4498fd7a3d39a6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.27.0-wmf.14
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to