App.get_value(): Log return value

Log what App.get_value() lookups return with priority DEBUG,
insightful for debugging.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-15 19:28:44 +01:00
commit 277e5166e8

View file

@ -530,8 +530,6 @@ class App(Base):
@lru_cache(maxsize=None)
def get_value(self, project: str, section: str, key: str) -> str:
log(DEBUG, "Lookup %s -> %s / %s%s" %(self.__top_name, project, section, '.'+key if key else ''))
assert len(section) != 1
if self.__top_name and project == self.__top_name:
proj_root = self.__topdir
else:
@ -551,10 +549,11 @@ class App(Base):
log(DEBUG, f'"Ignoring unreadable file "{version_path}"')
continue
raise Exception(f'No version file found for project "{project}"')
path = proj_root + '/make/project.conf'
#print('path = ', path, 'self.__top_name = ', self.__top_name, 'name = ', name)
return self.read_value(path, section, key)
ret = self.read_value(path, section, key)
log(DEBUG, "Lookup %s -> %s / %s%s -> \"%s\"" %
(self.__top_name, project, section, '.' + key if key else '', ret))
return ret
def get_values(self, projects: list[str], sections: list[str], keys: list[str]) -> list[str]:
"""