App.get_value(): Beautify logging

"getting value xxx for project" is a prominent debug log message but
ugly. Beautify to e.g.:

  Lookup jw-fail2ban -> jw-pkg / version

Meaning project "jw-fail2ban" looks up the value for key "version" in
project "jw-pkg".

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-15 09:44:31 +01:00
commit 5bd1f3378b

View file

@ -530,7 +530,7 @@ class App(Base):
@lru_cache(maxsize=None)
def get_value(self, project: str, section: str, key: str) -> str:
log(DEBUG, "getting value [%s].%s for project %s (%s)" %(section, key, project, self.__top_name))
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