From eb46ce3f4155fdd9333432ecc6ad773dae79dc91 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Thu, 13 Dec 2018 10:50:22 +0000 Subject: [Open311] warn on staging if fail to match updates If we fail to match an update to a problem on the staging server then print a warning so we can diagnose issues. --- perllib/Open311/GetServiceRequestUpdates.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index 60b37736c..1d07e7897 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -195,6 +195,10 @@ sub update_comments { } } } + # we get lots of comments that are not related to FMS issues from Lewisham so ignore those otherwise + # way too many warnings. + } elsif (FixMyStreet->config('STAGING_SITE') and $body->name !~ /Lewisham/) { + warn "Failed to match comment to problem with external_id $request_id for " . $body->name . "\n"; } } -- cgit v1.2.3