Tweaked logging
This commit is contained in:
parent
e03e0fb4d7
commit
d10264695a
@ -86,7 +86,7 @@ class Packer:
|
|||||||
act.path_action = PathAction.FIND_NEW_LOCATION
|
act.path_action = PathAction.FIND_NEW_LOCATION
|
||||||
new_location_paths.add(asset_path)
|
new_location_paths.add(asset_path)
|
||||||
else:
|
else:
|
||||||
log.info('%s can keep using %s', bfile_path, usage.asset_path)
|
log.debug('%s can keep using %s', bfile_path, usage.asset_path)
|
||||||
asset_pp = self.target / asset_path.relative_to(self.project)
|
asset_pp = self.target / asset_path.relative_to(self.project)
|
||||||
act.new_path = asset_pp
|
act.new_path = asset_pp
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ class Packer:
|
|||||||
|
|
||||||
This creates the BAT Pack but does not yet do any path rewriting.
|
This creates the BAT Pack but does not yet do any path rewriting.
|
||||||
"""
|
"""
|
||||||
log.info('Executing %d copy actions', len(self._actions))
|
log.debug('Executing %d copy actions', len(self._actions))
|
||||||
|
|
||||||
fc = queued_copy.FileCopier()
|
fc = queued_copy.FileCopier()
|
||||||
if not self.noop:
|
if not self.noop:
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import logging
|
|||||||
import pathlib
|
import pathlib
|
||||||
import typing
|
import typing
|
||||||
|
|
||||||
from blender_asset_tracer import blendfile, bpathlib
|
from blender_asset_tracer import blendfile
|
||||||
from . import result, blocks2assets, file2blocks
|
from . import result, blocks2assets, file2blocks
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
@ -23,6 +23,7 @@ def deps(bfilepath: pathlib.Path) -> typing.Iterator[result.BlockUsage]:
|
|||||||
:param bfilepath: File to open.
|
:param bfilepath: File to open.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
log.info('opening: %s', bfilepath)
|
||||||
bfile = blendfile.open_cached(bfilepath)
|
bfile = blendfile.open_cached(bfilepath)
|
||||||
|
|
||||||
# Sort the asset-holding blocks so that we can iterate over them
|
# 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(),
|
limit_to: typing.Set[blendfile.BlendFileBlock] = frozenset(),
|
||||||
) -> typing.Iterator[blendfile.BlendFileBlock]:
|
) -> typing.Iterator[blendfile.BlendFileBlock]:
|
||||||
"""Expand blocks with dependencies from other libraries."""
|
"""Expand blocks with dependencies from other libraries."""
|
||||||
|
|
||||||
|
log.info('inspecting: %s', bfile.filepath)
|
||||||
if limit_to:
|
if limit_to:
|
||||||
self._queue_named_blocks(bfile, limit_to)
|
self._queue_named_blocks(bfile, limit_to)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user