fix: Just another verbosity improvement
This commit is contained in:
parent
88aa334846
commit
64726c56f3
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue