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

View File

@ -86,7 +86,7 @@ class Packer:
act.path_action = PathAction.FIND_NEW_LOCATION
new_location_paths.add(asset_path)
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)
act.new_path = asset_pp
@ -140,7 +140,7 @@ class Packer:
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()
if not self.noop:

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

View File

@ -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: