fix: repr WoodpeckerEvent!

This commit is contained in:
Piotr Dec 2026-04-14 03:24:04 +02:00
parent 8da4bc4aaf
commit 7234560d16
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
2 changed files with 2 additions and 5 deletions

View file

@ -34,5 +34,5 @@ class ReloadService:
started=int(datetime.now().timestamp()), started=int(datetime.now().timestamp()),
files=[f"compose/{event.service}/docker-compose.yml"] + [str(pp) for pp in list(mos)] files=[f"compose/{event.service}/docker-compose.yml"] + [str(pp) for pp in list(mos)]
) )
logger.trace(f"Sending WoodpeckerEvent: {str(we)}") logger.trace(f"Sending <WoodpeckerEvent _id={we._id} commit={we.commit} ref={we.ref} message={we.message} started={we.started} files={we.files}")
await self._bus.dispatch(event) await self._bus.dispatch(we)

View file

@ -11,8 +11,5 @@ class WoodpeckerEvent(BaseEvent):
started: int started: int
files: List[str] files: List[str]
def __repr__(self):
return f"<WoodpeckerEvent _id={self._id} commit={self.commit} ref={self.ref} message={self.message} started={self.started} files={self.files}>"
class ReloadEvent(BaseEvent): class ReloadEvent(BaseEvent):
service: str service: str