Skip to content

Commit 7f13c31

Browse files
authored
Fix logging reconnect errors after a successful login (#592)
A logging call on stream error code 515 was missing the format specifier for the reconnection error. This commit adds the specifier. Signed-off-by: Carlos Torres <[email protected]>
1 parent 792d96f commit 7f13c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectionevents.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (cli *Client) handleStreamError(node *waBinary.Node) {
2828
cli.Disconnect()
2929
err := cli.Connect()
3030
if err != nil {
31-
cli.Log.Errorf("Failed to reconnect after 515 code:", err)
31+
cli.Log.Errorf("Failed to reconnect after 515 code: %v", err)
3232
}
3333
}()
3434
case code == "401" && conflictType == "device_removed":

0 commit comments

Comments
 (0)