File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,13 @@ func (h handler) fetchMessages(c echo.Context) error {
8080
8181func (h handler ) pushTokenReport (c echo.Context ) error {
8282 var req models.PushTokenReportRequest
83+ // Bind early so we can log the full struct for debugging.
84+ // We log the entire request struct to capture all fields without depending on their names.
8385 if err := c .Bind (& req ); err != nil {
8486 logger .Warn ().Str ("endpoint" , "push_token_report" ).Err (err ).Msg ("invalid request payload" )
8587 return echo .NewHTTPError (http .StatusBadRequest , "invalid payload" )
8688 }
87-
88- logger .Debug ().Str ("endpoint" , "push_token_report" ).Str ("selector" , req .Selector ).Msg ("processing push token report" )
89+ logger .Debug ().Str ("endpoint" , "push_token_report" ).Interface ("payload" , req ).Msg ("push_token_report payload fields" )
8990
9091 resp , err := h .svc .ReportPushToken (c .Request ().Context (), & req )
9192 if err != nil {
You can’t perform that action at this time.
0 commit comments