diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-10-04 11:07:50 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-10-04 11:07:50 +0100 |
commit | 98171090747addff1583a9c7744eca7d4255312f (patch) | |
tree | 6f3d8c14e8579370f303d024701aceb80b565516 | |
parent | 9c6bcb0465db99301a09966084d39fb35c329031 (diff) |
Improve error message.
-rw-r--r-- | conf/crontab.ugly | 1 | ||||
-rw-r--r-- | perllib/Open311/PopulateServiceList.pm | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/conf/crontab.ugly b/conf/crontab.ugly index d238084f1..ff0203cae 100644 --- a/conf/crontab.ugly +++ b/conf/crontab.ugly @@ -29,6 +29,7 @@ MAILTO=!!(*= $user *)!!@mysociety.org 5,10,15,20,25,30,35,40,45,50,55 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-comments.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper send-comments" || echo "stalled?" 5,10,15,20,25,30,35,40,45,50,55 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/fetch-comments.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper fetch-comments" || echo "stalled?" +30 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/open311-populate-service-list.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper open311-populate-service-list" || echo "stalled?" 0 0-7,9-23 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/open311-populate-service-list.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper open311-populate-service-list" || echo "stalled?" 0 8 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/open311-populate-service-list.lock "/data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper open311-populate-service-list --warn" || echo "stalled?" diff --git a/perllib/Open311/PopulateServiceList.pm b/perllib/Open311/PopulateServiceList.pm index 544c13bba..788024c89 100644 --- a/perllib/Open311/PopulateServiceList.pm +++ b/perllib/Open311/PopulateServiceList.pm @@ -41,7 +41,8 @@ sub process_council { my $list = $open311->get_service_list; unless ( $list ) { - warn "ERROR: no service list found for " . $self->_current_council->area_id . "\n" + my $id = $self->_current_council->area_id; + warn "Council $id - http://mapit.mysociety.org/area/$id.html - did not return a service list\n" if $self->verbose >= 1; return; } |