diff options
author | Struan Donald <struan@exo.org.uk> | 2018-12-13 10:50:22 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2018-12-20 17:02:32 +0000 |
commit | eb46ce3f4155fdd9333432ecc6ad773dae79dc91 (patch) | |
tree | 860bc454717ff658cdd23135b1df0169a2528374 | |
parent | 649692298b0b870b161a3f8b755f46b16b534e48 (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.pm | 4 |
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"; } } |