exception: Implement error-json log
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 2 Dec 2014 22:39:08 +0000 (22:39 +0000)
committerReedy <reedy@wikimedia.org>
Mon, 5 Jan 2015 20:17:00 +0000 (20:17 +0000)
Follows-up 399ba2f.

Bug: T75619
Bug: T45086
Change-Id: Ia7ba355d5925a6268ffa321ffc13cc6906b487f8

includes/exception/MWExceptionHandler.php

index 83801b6..ad462f2 100644 (file)
@@ -493,5 +493,10 @@ TXT;
                } else {
                        wfDebugLog( 'error', $log );
                }
+
+               $json = self::jsonSerializeException( $e, false, FormatJson::ALL_OK );
+               if ( $json !== false ) {
+                       wfDebugLog( 'error-json', $json, 'private' );
+               }
        }
 }