From db8f62e57d624426953c88925f56c098e986faa0 Mon Sep 17 00:00:00 2001 From: addshore Date: Thu, 15 Feb 2018 14:15:45 +0000 Subject: [PATCH] RevisionStore logging use wfBacktrace instead of wfDebugBacktrace 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Storage/RevisionStore.php b/includes/Storage/RevisionStore.php index d832104ca1..e7c9060411 100644 --- a/includes/Storage/RevisionStore.php +++ b/includes/Storage/RevisionStore.php @@ -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; } -- 2.20.1