RevisionStore logging use wfBacktrace instead of wfDebugBacktrace
authoraddshore <addshorewiki@gmail.com>
Thu, 15 Feb 2018 14:15:45 +0000 (14:15 +0000)
committeraddshore <addshorewiki@gmail.com>
Thu, 15 Feb 2018 14:15:45 +0000 (14:15 +0000)
wfDebugBacktrace doesn't work very will with logstash.
The whole message ends up being too long and the log ends
up in the 'jsonTruncated' channel.
Instead use wfBacktrace which will be smaller as it just gives
us a string.

Change-Id: I5309ac2ad4592fb6dbb1474526d382893fb7e6c1

includes/Storage/RevisionStore.php

index d832104..e7c9060 100644 (file)
@@ -252,7 +252,7 @@ class RevisionStore
                        if ( $title ) {
                                $this->logger->info(
                                        __METHOD__ . ' fell back to READ_LATEST and got a Title.',
-                                       [ 'trace' => wfDebugBacktrace() ]
+                                       [ 'trace' => wfBacktrace() ]
                                );
                                return $title;
                        }