summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-11 11:31:47 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-11 13:26:28 +0100
commit1c9609503a5621b6a24f4e78573abe92dd69c9b5 (patch)
tree9fd013ceffd146f94c28b96aa2e90d41ac47e14d
parentf7c73c6d71c14e1ee084de3b0a4807df0e8757e6 (diff)
downloadmorph-1c9609503a5621b6a24f4e78573abe92dd69c9b5.tar.gz
import: Log if an existing .lorry is used
One can become confused about why old URLs are being used, otherwise.
-rw-r--r--import/main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/import/main.py b/import/main.py
index ec4c80b2..481a730a 100644
--- a/import/main.py
+++ b/import/main.py
@@ -474,6 +474,10 @@ class BaserockImportApplication(cliapp.Application):
'Invalid lorry data for %s: %s' % (name, lorry))
lorry_set.add(lorry_filename, lorry)
+ else:
+ lorry_filename = lorry.keys()[0]
+ logging.info(
+ 'Found existing lorry file for %s: %s', name, lorry_filename)
return lorry