Skip to content

Commit b807af5

Browse files
committed
Use String Interpolation for Logging Metadata
1 parent 2f21e20 commit b807af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/RedisNIO/ChannelHandlers/RedisCommandHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ extension RedisCommandHandler: ChannelInboundHandler {
8282
self.commandResponseQueue.removeAll()
8383
queue.forEach { $0.fail(error) }
8484

85-
self.logger.critical("Error in channel pipeline.", metadata: ["error": .string(error.localizedDescription)])
85+
self.logger.critical("Error in channel pipeline.", metadata: ["error": "\(error.localizedDescription)"])
8686

8787
context.close(promise: nil)
8888
}

0 commit comments

Comments
 (0)