diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-10-05 13:55:22 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-10-05 14:08:19 +0100 |
commit | a4f6ba5bd1c6ae1a1c4f2a3186c920b54f88b53d (patch) | |
tree | eaf10b4abc864bd55d87d940189bb08d8c06ae63 /perllib/Open311/GetServiceRequestUpdates.pm | |
parent | 00df8752bd16f7250062cf6ef95a7418f449b931 (diff) |
More cron quietening, only show full Open311 first time, then summarise.
Diffstat (limited to 'perllib/Open311/GetServiceRequestUpdates.pm')
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index c30d05b22..6e6e3b905 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -10,6 +10,7 @@ has system_user => ( is => 'rw' ); has start_date => ( is => 'ro', default => undef ); has end_date => ( is => 'ro', default => undef ); has suppress_alerts => ( is => 'rw', default => 0 ); +has verbose => ( is => 'ro', default => 0 ); sub fetch { my $self = shift; @@ -52,7 +53,8 @@ sub update_comments { my $requests = $open311->get_service_request_updates( @args ); unless ( $open311->success ) { - warn "Failed to fetch ServiceRequest Updates: " . $open311->error; + warn "Failed to fetch ServiceRequest Updates: " . $open311->error + if $self->verbose; return 0; } |