From: Tom Hughes Date: Tue, 17 Sep 2013 07:31:10 +0000 (+0100) Subject: Only warn about an unfinished expiry if we started one X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/0ce79daea5fc346d5d00b36460eb648673683076?ds=inline Only warn about an unfinished expiry if we started one --- diff --git a/cookbooks/tile/templates/default/cleanup-tiles.erb b/cookbooks/tile/templates/default/cleanup-tiles.erb index cd8696ac4..5c914f3bb 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -39,10 +39,10 @@ if (df($tiledir)->{per} > 90) done: close(TILES); + + warn "Tile expiry finished before threshold reached" if df($tiledir)->{per} > 80; } unlink($tempfile); -warn "Tile expiry finished before threshold reached" if df($tiledir)->{per} > 80; - exit 0;