From 89790eaea4c12aaf4af50dfcfdf5943834f64ba7 Mon Sep 17 00:00:00 2001 From: RobLa Date: Wed, 24 Oct 2012 13:30:56 -0700 Subject: [PATCH] Bug 37209: change exception into debug entry Change-Id: Ic2d3f0b8b0b15828a8acbc8868f26102bb33e75d --- includes/Title.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index a7bea9d357..b1569e2837 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2930,6 +2930,8 @@ class Title { // TODO: check the assumption that the cache actually knows about this title // and handle this, such as get the title from the database. // See https://bugzilla.wikimedia.org/show_bug.cgi?id=37209 + wfDebug( "LinkCache doesn't currently know about this title: " . $this->getPrefixedDBkey() ); + wfDebug( wfBacktrace() ); } $this->mRedirect = (bool)$cached; @@ -2957,7 +2959,8 @@ class Title { if ( $cached === null ) { # check the assumption that the cache actually knows about this title # XXX: this does apparently happen, see https://bugzilla.wikimedia.org/show_bug.cgi?id=37209 # as a stop gap, perhaps log this, but don't throw an exception? - throw new MWException( "LinkCache doesn't currently know about this title: " . $this->getPrefixedDBkey() ); + wfDebug( "LinkCache doesn't currently know about this title: " . $this->getPrefixedDBkey() ); + wfDebug( wfBacktrace() ); } $this->mLength = intval( $cached ); -- 2.20.1