Merge "Add missing line breaks to wfDebug() calls"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 31 Mar 2014 11:50:41 +0000 (11:50 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 31 Mar 2014 11:50:41 +0000 (11:50 +0000)
1  2 
includes/cache/LocalisationCache.php
includes/parser/Parser.php

@@@ -212,7 -212,7 +212,7 @@@ class LocalisationCache 
                        }
                }
  
 -              wfDebug( get_class( $this ) . ": using store $storeClass\n" );
 +              wfDebugLog( 'caches', get_class( $this ) . ": using store $storeClass" );
                if ( !empty( $conf['storeDirectory'] ) ) {
                        $storeConf['directory'] = $conf['storeDirectory'];
                }
@@@ -1281,7 -1281,7 +1281,7 @@@ class LCStoreCDB implements LCStore 
                                try {
                                        $this->readers[$code] = CdbReader::open( $fileName );
                                } catch ( CdbException $e ) {
-                                       wfDebug( __METHOD__ . ": unable to open cdb file for reading" );
+                                       wfDebug( __METHOD__ . ": unable to open cdb file for reading\n" );
                                }
                        }
                }
                                $value = $this->readers[$code]->get( $key );
                        } catch ( CdbException $e ) {
                                wfDebug( __METHOD__ . ": CdbException caught, error message was "
-                                       . $e->getMessage() );
+                                       . $e->getMessage() . "\n" );
                        }
                        if ( $value === false ) {
                                return null;
@@@ -3416,7 -3416,8 +3416,8 @@@ class Parser 
                                        }
                                } elseif ( MWNamespace::isNonincludable( $title->getNamespace() ) ) {
                                        $found = false; # access denied
-                                       wfDebug( __METHOD__ . ": template inclusion denied for " . $title->getPrefixedDBkey() );
+                                       wfDebug( __METHOD__ . ": template inclusion denied for " .
+                                               $title->getPrefixedDBkey() . "\n" );
                                } else {
                                        list( $text, $title ) = $this->getTemplateDom( $title );
                                        if ( $text !== false ) {
         * Add a tracking category, getting the title from a system message,
         * or print a debug message if the title is invalid.
         *
 +       * Please add any message that you use with this function to
 +       * $wgTrackingCategories. That way they will be listed on
 +       * Special:TrackingCategories.
 +       *
         * @param string $msg message key
         * @return Boolean: whether the addition was successful
         */
                                                                $handlerOptions[$paramName] = $match;
                                                        } else {
                                                                // Guess not. Append it to the caption.
-                                                               wfDebug( "$parameterMatch failed parameter validation" );
+                                                               wfDebug( "$parameterMatch failed parameter validation\n" );
                                                                $label .= '|' . $parameterMatch;
                                                        }
                                                }