Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/247481
Change subject: Send bounce and unsubscribe counts to graphite
......................................................................
Send bounce and unsubscribe counts to graphite
Bug: T114020
Change-Id: Ia4acd10540ebdc580ef9a817a27f07889d6ec3a8
---
M includes/BounceHandlerActions.php
M includes/ProcessBounceEmails.php
2 files changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BounceHandler
refs/changes/81/247481/1
diff --git a/includes/BounceHandlerActions.php
b/includes/BounceHandlerActions.php
index e2ae33d..bb35509 100644
--- a/includes/BounceHandlerActions.php
+++ b/includes/BounceHandlerActions.php
@@ -140,6 +140,7 @@
wfDebugLog( 'BounceHandler',
"Un-subscribed global user
$originalEmail for exceeding Bounce Limit $this->bounceRecordLimit"
);
+
RequestContext::getMain()->getStats()->increment( 'bouncehandler.unsub.global'
);
}
} else {
// Invalidate the email-id of a local user
@@ -149,6 +150,7 @@
wfDebugLog( 'BounceHandler',
"Un-subscribed $originalEmail for exceeding
Bounce limit $this->bounceRecordLimit"
);
+ RequestContext::getMain()->getStats()->increment(
'bouncehandler.unsub.local' );
}
}
diff --git a/includes/ProcessBounceEmails.php b/includes/ProcessBounceEmails.php
index 21a1a0a..1708a9a 100644
--- a/includes/ProcessBounceEmails.php
+++ b/includes/ProcessBounceEmails.php
@@ -70,6 +70,7 @@
'br_reason' => $subject
);
$dbw->insert( 'bounce_records', $rowData, __METHOD__ );
+ RequestContext::getMain()->getStats()->increment(
'bouncehandler.bounces' );
if ( $wgBounceRecordMaxAge ) {
$pruneOldRecords = new PruneOldBounceRecords(
$wgBounceRecordMaxAge );
--
To view, visit https://gerrit.wikimedia.org/r/247481
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia4acd10540ebdc580ef9a817a27f07889d6ec3a8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BounceHandler
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits