Skip to content

Commit c849943

Browse files
committed
fix: don't log provided content-type
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 3b6e8a1 commit c849943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func handleSubmitTx(c *gin.Context) {
126126
// Check our headers for content-type
127127
if c.ContentType() != "application/cbor" {
128128
// Log the error, return an error to the user, and increment failed count
129-
logger.Errorf("invalid request body, should be application/cbor, got: %s", c.ContentType())
129+
logger.Errorf("invalid request body, should be application/cbor")
130130
c.String(415, "invalid request body, should be application/cbor")
131131
_ = ginmetrics.GetMonitor().GetMetric("tx_failure_count").Inc(nil)
132132
return

0 commit comments

Comments
 (0)