diff --git a/catcli/catalog.py b/catcli/catalog.py index 65993d1..eee2704 100644 --- a/catcli/catalog.py +++ b/catcli/catalog.py @@ -94,7 +94,7 @@ class Catalog: def _restore_json(self, string: str) -> Optional[NodeTop]: """restore the tree from json""" imp = JsonImporter() - self._debug(f'import from string: {string}') + self._debug('import from string...') root = imp.import_(string) self._debug(f'Catalog imported from json \"{self.path}\"') self._debug(f'root imported: {root}') diff --git a/catcli/catcli.py b/catcli/catcli.py index bff10c5..1f2d066 100755 --- a/catcli/catcli.py +++ b/catcli/catcli.py @@ -210,12 +210,15 @@ def cmd_find(args: Dict[str, Any], raw = args['--raw-size'] script = args['--script'] search_for = args[''] + if args['--verbose']: + Logger.debug(f'search for \"{search_for}\" under \"{top.name}\"') found = noder.find_name(top, search_for, script=script, startnode=startpath, only_dir=directory, parentfromtree=fromtree, - fmt=fmt, raw=raw) + fmt=fmt, + raw=raw) return found diff --git a/catcli/nodes.py b/catcli/nodes.py index e8f30ba..0f96c45 100644 --- a/catcli/nodes.py +++ b/catcli/nodes.py @@ -38,7 +38,7 @@ class NodeAny(NodeMixin): # type: ignore if self.children: ret += '\n' for child in self.children: - ret += ' child => ' + str(child) + ret += f' child => {child}\n' return ret def __str__(self) -> str: