Krinkle has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/177095

Change subject: exception: Implement error-json log
......................................................................

exception: Implement error-json log

Follows-up 399ba2f.

Bug: T75619
Change-Id: Ia7ba355d5925a6268ffa321ffc13cc6906b487f8
---
M includes/exception/MWExceptionHandler.php
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/95/177095/1

diff --git a/includes/exception/MWExceptionHandler.php 
b/includes/exception/MWExceptionHandler.php
index 9db04cb..39c4c3a 100644
--- a/includes/exception/MWExceptionHandler.php
+++ b/includes/exception/MWExceptionHandler.php
@@ -440,5 +440,10 @@
                } else {
                        wfDebugLog( 'error', $log );
                }
+
+               $json = self::jsonSerializeException( $e, false, 
FormatJson::ALL_OK );
+               if ( $json !== false ) {
+                       wfDebugLog( 'error-json', $json, 'private' );
+               }
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/177095
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia7ba355d5925a6268ffa321ffc13cc6906b487f8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to