EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/162983
Change subject: Logspam: Dont log requests for protected data
......................................................................
Logspam: Dont log requests for protected data
Change-Id: I07359589ee11226ac2013baef57bca941f1ebc62
---
M includes/Exception/ExceptionHandling.php
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/83/162983/1
diff --git a/includes/Exception/ExceptionHandling.php
b/includes/Exception/ExceptionHandling.php
index 96a6843..0910479 100644
--- a/includes/Exception/ExceptionHandling.php
+++ b/includes/Exception/ExceptionHandling.php
@@ -220,6 +220,14 @@
protected function getErrorCodeList() {
return array ( 'insufficient-permission' );
}
+
+ /**
+ * Do not log exception resulting from user requesting
+ * disallowed content.
+ */
+ function isLoggable() {
+ return false;
+ }
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/162983
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I07359589ee11226ac2013baef57bca941f1ebc62
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits