Tweaked logging

This commit is contained in:
Sybren A. Stüvel
2018-03-08 15:30:31 +01:00
parent e03e0fb4d7
commit d10264695a
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -2,7 +2,7 @@ import logging
import pathlib
import typing
from blender_asset_tracer import blendfile, bpathlib
from blender_asset_tracer import blendfile
from . import result, blocks2assets, file2blocks
log = logging.getLogger(__name__)
@@ -23,6 +23,7 @@ def deps(bfilepath: pathlib.Path) -> typing.Iterator[result.BlockUsage]:
:param bfilepath: File to open.
"""
log.info('opening: %s', bfilepath)
bfile = blendfile.open_cached(bfilepath)
# Sort the asset-holding blocks so that we can iterate over them
@@ -35,6 +35,8 @@ class _BlockIterator:
limit_to: typing.Set[blendfile.BlendFileBlock] = frozenset(),
) -> typing.Iterator[blendfile.BlendFileBlock]:
"""Expand blocks with dependencies from other libraries."""
log.info('inspecting: %s', bfile.filepath)
if limit_to:
self._queue_named_blocks(bfile, limit_to)
else: