Commit 4e5397cc authored by Vincent Pelletier's avatar Vincent Pelletier

Increase bootstrap verbosity to make it easier to track problems down.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24530 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 65250457
......@@ -424,6 +424,14 @@ class BootstrapContent(threading.Thread):
global has_bootstraped
base_url = options.base_url
if base_url is not None:
log('Bootstrap started')
storage_id_to_object_path_dict = {}
for key, value in options.known_tid_storage_identifier_dict.iteritems():
mountpoint = value[2]
if mountpoint is None:
log('Skipping bootstrap of storage %s because its mountpoint is unknown.' % (key, ))
else:
storage_id_to_object_path_dict[key] = mountpoint
storage_id_to_object_path_dict = dict([(key, value[2]) for key, value
in options.known_tid_storage_identifier_dict.iteritems()
if value[2] is not None])
......@@ -455,6 +463,7 @@ class BootstrapContent(threading.Thread):
log('Bootstrap done (%i storages).' % (len(target_storage_id_set), ))
has_bootstraped = True
else:
log('Bootstrap did not happen because base_url was not given.')
has_bootstraped = True
bootstrap_content = BootstrapContent()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment