Skip to content

Commit

Permalink
Fix logging reconnect errors after a successful login (#592)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
torrca authored May 23, 2024
1 parent 792d96f commit 7f13c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectionevents.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 7f13c31

Please sign in to comment.