diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2023-11-25 15:22:59 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-25 15:22:59 -0800 |
| commit | 931031276f4a663b61abaa2e5207740565de8351 (patch) | |
| tree | 0d85c3c40b3b99e8cc223fd4fc40830a5beae17f /hotline | |
| parent | a5520a37f2d93759b5b238fcb0bd8ea8ed619571 (diff) | |
Log client handler errors (#108)
Diffstat (limited to 'hotline')
| -rw-r--r-- | hotline/client.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hotline/client.go b/hotline/client.go index e812d1d..3353095 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -625,7 +625,10 @@ func (c *Client) HandleTransaction(ctx context.Context, t *Transaction) error { "IsReply", t.IsReply, "type", binary.BigEndian.Uint16(t.Type), ) - outT, _ := handler(ctx, c, t) + outT, err := handler(ctx, c, t) + if err != nil { + c.Logger.Error("error handling transaction", "err", err) + } for _, t := range outT { if err := c.Send(t); err != nil { return err |