Bug 37209: change exception into debug entry
authorRobLa <robla@wikimedia.org>
Wed, 24 Oct 2012 20:30:56 +0000 (13:30 -0700)
committerRobLa <robla@wikimedia.org>
Wed, 24 Oct 2012 20:38:43 +0000 (13:38 -0700)
Change-Id: Ic2d3f0b8b0b15828a8acbc8868f26102bb33e75d

includes/Title.php

index a7bea9d..b1569e2 100644 (file)
@@ -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 );