aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2018-12-13 10:50:22 +0000
committerStruan Donald <struan@exo.org.uk>2018-12-20 17:02:32 +0000
commiteb46ce3f4155fdd9333432ecc6ad773dae79dc91 (patch)
tree860bc454717ff658cdd23135b1df0169a2528374
parent649692298b0b870b161a3f8b755f46b16b534e48 (diff)
[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.
-rw-r--r--perllib/Open311/GetServiceRequestUpdates.pm4
1 files changed, 4 insertions, 0 deletions
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";
}
}