From 65b1bfe62ff584280b71c2e373c8295db8035ecd Mon Sep 17 00:00:00 2001 From: Thom Shutt Date: Mon, 9 Oct 2023 13:31:48 +0100 Subject: [PATCH] Log body of USER_END trigger (#905) --- handlers/misttriggers/user_end.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handlers/misttriggers/user_end.go b/handlers/misttriggers/user_end.go index f6a7cf38..f6a59a1c 100644 --- a/handlers/misttriggers/user_end.go +++ b/handlers/misttriggers/user_end.go @@ -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)