Merge "Make a VirtualRESTService class for Parsoid"
[lhc/web/wiklou.git] / 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' );
+               }
        }
 }