From: RobLa Date: Wed, 24 Oct 2012 20:30:56 +0000 (-0700) Subject: Bug 37209: change exception into debug entry X-Git-Tag: 1.31.0-rc.0~21879^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=89790eaea4c12aaf4af50dfcfdf5943834f64ba7;p=lhc%2Fweb%2Fwiklou.git Bug 37209: change exception into debug entry Change-Id: Ic2d3f0b8b0b15828a8acbc8868f26102bb33e75d --- 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 );