From 0ce79daea5fc346d5d00b36460eb648673683076 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 17 Sep 2013 08:31:10 +0100 Subject: [PATCH] Only warn about an unfinished expiry if we started one --- cookbooks/tile/templates/default/cleanup-tiles.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5