fix: repr WoodpeckerEvent!
This commit is contained in:
parent
8da4bc4aaf
commit
7234560d16
2 changed files with 2 additions and 5 deletions
|
|
@ -34,5 +34,5 @@ class ReloadService:
|
|||
started=int(datetime.now().timestamp()),
|
||||
files=[f"compose/{event.service}/docker-compose.yml"] + [str(pp) for pp in list(mos)]
|
||||
)
|
||||
logger.trace(f"Sending WoodpeckerEvent: {str(we)}")
|
||||
await self._bus.dispatch(event)
|
||||
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(we)
|
||||
|
|
|
|||
|
|
@ -11,8 +11,5 @@ class WoodpeckerEvent(BaseEvent):
|
|||
started: int
|
||||
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):
|
||||
service: str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue