Skip to content

Commit

Permalink
chore: easier msg
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerinthenight committed Apr 27, 2024
1 parent 673c503 commit 8c14485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ func handleEvent(e eventT) {
}

var sm strings.Builder
fmt.Fprintf(&sm, "%v", e.Message)
fmt.Fprintf(&sm, "%v.", e.Message)
node := e.InvolvedObject.Name
if node == "" {
node = e.Source.Host
}

if node != "" {
fmt.Fprintf(&sm, ", from [%v]", node)
fmt.Fprintf(&sm, "\n\nReported from [%v].", node)
}

p := map[string]interface{}{
Expand Down

0 comments on commit 8c14485

Please sign in to comment.