main: Log key points of the main loop.
This commit is contained in:
parent
6f139bbe90
commit
c1baf3c38a
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,13 @@ class FileImporter:
|
||||||
importers.append(importer)
|
importers.append(importer)
|
||||||
if not importers:
|
if not importers:
|
||||||
raise errors.UserInputFileError("no importers available", in_file.name)
|
raise errors.UserInputFileError("no importers available", in_file.name)
|
||||||
|
else:
|
||||||
|
logger.debug(
|
||||||
|
"%s can be imported by %s",
|
||||||
|
in_path,
|
||||||
|
", ".join("{}.{}".format(importer.__module__, importer.__name__)
|
||||||
|
for importer in importers),
|
||||||
|
)
|
||||||
source_vars = {
|
source_vars = {
|
||||||
'source_abspath': in_path.absolute().as_posix(),
|
'source_abspath': in_path.absolute().as_posix(),
|
||||||
'source_absdir': in_path.absolute().parent.as_posix(),
|
'source_absdir': in_path.absolute().parent.as_posix(),
|
||||||
|
@ -44,6 +51,7 @@ class FileImporter:
|
||||||
if hook_retval is None:
|
if hook_retval is None:
|
||||||
pass
|
pass
|
||||||
elif hook_retval is False:
|
elif hook_retval is False:
|
||||||
|
logger.debug("%s import aborted by %s", in_path, type(hook).__name__)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
entry_data = hook_retval
|
entry_data = hook_retval
|
||||||
|
|
Loading…
Reference in a new issue