Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socketmode remove duplicate debug logging #1165

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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