mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
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:
parent
5b3118319c
commit
277e5166e8
1 changed files with 4 additions and 5 deletions
|
|
@ -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]:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue