jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  SG: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I07359589ee11226ac2013baef57bca941f1ebc62
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: SG <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to