From 948fbedb8a9fb344f48c2e6dcd57efb241491d80 Mon Sep 17 00:00:00 2001 From: Carlos Torres Date: Wed, 22 May 2024 23:26:23 -0300 Subject: [PATCH] Add missing format specifier for stream error A logging cal on stream error code 515 was missing the format specifier for the connection error. This commit adds the specifier. Signed-off-by: Carlos Torres --- connectionevents.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectionevents.go b/connectionevents.go index 881c6d70..5feaed25 100644 --- a/connectionevents.go +++ b/connectionevents.go @@ -28,7 +28,7 @@ func (cli *Client) handleStreamError(node *waBinary.Node) { cli.Disconnect() err := cli.Connect() if err != nil { - cli.Log.Errorf("Failed to reconnect after 515 code:", err) + cli.Log.Errorf("Failed to reconnect after 515 code: %v", err) } }() case code == "401" && conflictType == "device_removed":