Tweaked logging
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user