Skip to content

Commit

Permalink
Merge pull request #1165 from kittydoor/socketmode-remove-duplicate-d…
Browse files Browse the repository at this point in the history
…ebug

socketmode remove duplicate debug logging
  • Loading branch information
kanata2 authored Apr 6, 2023
2 parents 002a1c6 + d66f160 commit b4b5a64
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions socketmode/socket_mode_managed_conn.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package socketmode

import (
"bytes"
"context"
"encoding/json"
"errors"
Expand Down Expand Up @@ -469,18 +468,6 @@ func (smc *Client) receiveMessagesInto(ctx context.Context, conn *websocket.Conn
case len(event) == 0:
smc.Debugln("Received empty event")
default:
if smc.debug {
buf := &bytes.Buffer{}
d := json.NewEncoder(buf)
d.SetIndent("", " ")
if err := d.Encode(event); err != nil {
smc.Debugln("Failed encoding decoded json:", err)
}
reencoded := buf.String()

smc.Debugln("Incoming WebSocket message:", reencoded)
}

select {
case sink <- event:
case <-ctx.Done():
Expand Down

0 comments on commit b4b5a64

Please sign in to comment.