Skip to content
Snippets Groups Projects
Verified Commit cc96d18d authored by Malte Bauch's avatar Malte Bauch
Browse files

Fix wrong formatting verb within log

parent 88f2244a
Branches
Tags
1 merge request!230Draft: Request health checks for peers
...@@ -129,7 +129,7 @@ func NewKmsPeer(peerKmsId string, quantummodule QuantumModule, cryptoAlgorithm c ...@@ -129,7 +129,7 @@ func NewKmsPeer(peerKmsId string, quantummodule QuantumModule, cryptoAlgorithm c
} }
break break
} else if stat, ok := status.FromError(err); ok && stat.Code() == codes.DeadlineExceeded { } else if stat, ok := status.FromError(err); ok && stat.Code() == codes.DeadlineExceeded {
log.Printf("health request for peer: %s timed out after %i seconds", peerKmsId, timeout) log.Printf("health request for peer: %s timed out after %d seconds", peerKmsId, timeout)
if kmsPeer.peerStatus != KmsPeerDown { if kmsPeer.peerStatus != KmsPeerDown {
kmsPeer.peerStatus = KmsPeerDown kmsPeer.peerStatus = KmsPeerDown
kmsPeer.eventBus.Publish(event.NewPeerEvent(kmsPeer.TcpSocketStr)) kmsPeer.eventBus.Publish(event.NewPeerEvent(kmsPeer.TcpSocketStr))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment