dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e305468
)
exception: Implement error-json log
author
Timo Tijhof
<krinklemail@gmail.com>
Tue, 2 Dec 2014 22:39:08 +0000
(22:39 +0000)
committer
Reedy
<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
patch
|
blob
|
history
diff --git
a/includes/exception/MWExceptionHandler.php
b/includes/exception/MWExceptionHandler.php
index
83801b6
..
ad462f2
100644
(file)
--- a/
includes/exception/MWExceptionHandler.php
+++ b/
includes/exception/MWExceptionHandler.php
@@
-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' );
+ }
}
}