From d10264695a324a771160b898b9eeaa8fb56857db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 8 Mar 2018 15:30:31 +0100 Subject: [PATCH] Tweaked logging --- blender_asset_tracer/pack/__init__.py | 4 ++-- blender_asset_tracer/tracer/__init__.py | 3 ++- blender_asset_tracer/tracer/file2blocks.py | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/blender_asset_tracer/pack/__init__.py b/blender_asset_tracer/pack/__init__.py index 685e9cd..93e4482 100644 --- a/blender_asset_tracer/pack/__init__.py +++ b/blender_asset_tracer/pack/__init__.py @@ -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: diff --git a/blender_asset_tracer/tracer/__init__.py b/blender_asset_tracer/tracer/__init__.py index e88ebe1..49427db 100644 --- a/blender_asset_tracer/tracer/__init__.py +++ b/blender_asset_tracer/tracer/__init__.py @@ -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 diff --git a/blender_asset_tracer/tracer/file2blocks.py b/blender_asset_tracer/tracer/file2blocks.py index 24ea9c0..6e17c8f 100644 --- a/blender_asset_tracer/tracer/file2blocks.py +++ b/blender_asset_tracer/tracer/file2blocks.py @@ -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: