fix: Just another verbosity improvement

This commit is contained in:
Piotr Dec 2026-04-14 03:37:16 +02:00
parent 88aa334846
commit 64726c56f3
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0

View file

@ -26,7 +26,11 @@ class ReloadService:
try: try:
logger.info(f"Received ReloadEvent: {event.service}") logger.info(f"Received ReloadEvent: {event.service}")
head = self._git.get_head() head = self._git.get_head()
mos = list(Path(f"files/{event.service}").glob('*.mo.*')) file_path = Path(f"files/{event.service}")
if not file_path.exists():
raise Exception(f"Service {event.service} not found.")
logger.debug(f"Found service files at {file_path}: {', '.join([str(f) for f in list(file_path.iterdir())])}")
mos = list(file_path.glob('*.mo.*'))
logger.debug(f"Found {len(mos)} .mo files") logger.debug(f"Found {len(mos)} .mo files")
we = WoodpeckerEvent( we = WoodpeckerEvent(
_id=-1, _id=-1,