Skip to content

Commit 14c6224

Browse files
committed
调整通知内容, 移除无用文件
1 parent 4a6d15b commit 14c6224

File tree

2 files changed

+5
-37
lines changed

2 files changed

+5
-37
lines changed

event/message.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,14 @@ func readPayload(reader *bufio.Reader, payloadLen int) (*Payload, error) {
7575
}
7676

7777
func (msg *Message) String() string {
78-
tmpl := `Proc: %s
79-
Host: %s
80-
State: %s
81-
PID: %d
82-
Date: %s`
78+
tmpl := `Proc: %s
79+
Host: %s
80+
PID: %d State: %s
81+
Date: %s`
8382
return fmt.Sprintf(tmpl,
8483
msg.Payload.ProcessName,
8584
msg.Payload.IP,
86-
msg.Payload.FromState,
87-
msg.Payload.PID,
85+
msg.Payload.PID, msg.Payload.FromState,
8886
msg.TS.Format(time.RFC3339),
8987
)
9088
}

supervisor-event-listener.toml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)