Skip to content

Commit 770bccf

Browse files
authored
Revert "Debug Poki specific topic to understand large payloads (#307)"
This reverts commit c1218d4.
1 parent c1218d4 commit 770bccf

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

internal/signaling/stores/postgres.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,6 @@ func (s *PostgresStore) Publish(ctx context.Context, topic string, data []byte)
154154
}
155155
totalLength := base64.StdEncoding.EncodedLen(len(data)) + len(topic) + 1
156156
if totalLength > 8000 {
157-
// debug a Poki specific topic to understand why the payload gets so large in some cases
158-
if topic == "2c23b92e-cc51-45f2-8ece-bff5d9b2e2d6" {
159-
logger := logging.GetLogger(ctx)
160-
logger.Warn("data is too long", zap.String("topic", topic), zap.Int("length", totalLength), zap.String("data", string(data)))
161-
}
162157
return fmt.Errorf("data too long for topic %q: %d", topic, totalLength)
163158
}
164159
encoded := base64.StdEncoding.EncodeToString(data)

0 commit comments

Comments
 (0)