Skip to content

Commit

Permalink
Log body of USER_END trigger (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomshutt authored Oct 9, 2023
1 parent 88f85bc commit 65b1bfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/misttriggers/user_end.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ type UserEndPayload struct {
// comma-separated list of seconds spend connected to each stream, same order as stream list, string
// the session ID, string
func ParseUserEndPayload(payload MistTriggerBody, TriggerID string) (UserEndPayload, error) {
glog.Infof("Received USER_END Mist trigger payload=%q", payload)

lines := payload.Lines()
if len(lines) != 12 {
return UserEndPayload{}, fmt.Errorf("expected 12 lines in USER_NEW payload but got lines=%d payload=%s", len(lines), payload)
Expand Down

0 comments on commit 65b1bfe

Please sign in to comment.