Skip to content

Commit 0b30d67

Browse files
Don't log tokens
1 parent efdfaa5 commit 0b30d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/DiscordKitCore/Gateway/RobustWebSocket.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ public extension RobustWebSocket {
675675

676676
Self.log.trace("Outgoing Payload", metadata: [
677677
"opcode": "\(opcode)",
678-
"data": "\(data)",
678+
"data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
679679
"seq": "\(seq ?? -1)"
680680
])
681681

0 commit comments

Comments
 (0)