Skip to content

Commit e09eca5

Browse files
authored
Merge pull request #678 from code-payments/fix/grpc-logging-large-bytestring
fix(oc): replace hex dump of ByteString fields with size summary in gRPC logging
2 parents 0bf9e5a + e751e72 commit e09eca5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/opencode/src/main/kotlin/com/getcode/opencode/utils/logging/LoggingClientCallListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private fun formatFieldValue(fieldName: String, value: Any): String? = when (val
135135
if (value.serializedSize == 0) null else formatProto(value)
136136
}
137137
is ByteString -> {
138-
if (value.isEmpty) null else value.toByteArray().toHex().masked()
138+
if (value.isEmpty) null else "<${value.size()} bytes>"
139139
}
140140
is List<*> -> {
141141
if (value.isEmpty()) null

0 commit comments

Comments
 (0)