Include numerical namespace in slow-parse.log
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 9 Dec 2016 22:55:28 +0000 (14:55 -0800)
committerLegoktm <legoktm@member.fsf.org>
Fri, 9 Dec 2016 23:18:45 +0000 (23:18 +0000)
This makes it easier to sort by namespace rather than trying to parse it
out of the title.

Change-Id: I946cb00548bcb69bd2be98c15a9f1e02e546fa24

includes/poolcounter/PoolWorkArticleView.php

index 29016a8..534e86b 100644 (file)
@@ -147,6 +147,7 @@ class PoolWorkArticleView extends PoolCounterWork {
                        $logger->info( '{time} {title}', [
                                'time' => number_format( $time, 2 ),
                                'title' => $this->page->getTitle()->getPrefixedDBkey(),
+                               'ns' => $this->page->getTitle()->getNamespace(),
                                'trigger' => 'view',
                        ] );
                }