dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
d604a38
)
Merge "Log the reason why revision->getContent() returns null"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 14 Feb 2018 18:30:48 +0000
(18:30 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 14 Feb 2018 18:30:48 +0000
(18:30 +0000)
includes/Revision.php
patch
|
blob
|
history
diff --git
a/includes/Revision.php
b/includes/Revision.php
index
eba563c
..
d9d3149
100644
(file)
--- a/
includes/Revision.php
+++ b/
includes/Revision.php
@@
-906,6
+906,11
@@
class Revision implements IDBAccessObject {
return $this->mRecord->getContent( 'main', $audience, $user );
}
catch ( RevisionAccessException $e ) {
+ wfDebugLog(
+ 'T184670',
+ __METHOD__ . ": Cannot get content: " . $e->getMessage() .
+ "\n" . $e->getTraceAsString()
+ );
return null;
}
}