Skip to content

Commit

Permalink
Use configured logger for reconnect strategy (#73)
Browse files Browse the repository at this point in the history
Use the passed in logger, otherwise it falls back to log.default
even if a logger was passed in.
  • Loading branch information
hgschmie authored Jan 16, 2023
1 parent 008b785 commit 1f6399d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.toit
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 85,7 @@ class Client:
--reconnection_strategy /ReconnectionStrategy? = null
--catch_all_callback /Lambda? = null:
reconnection_strategy = reconnection_strategy or
TenaciousReconnectionStrategy --delay_lambda=:: Duration --s=it
TenaciousReconnectionStrategy --logger=logger_ --delay_lambda=:: Duration --s=it
client_.connect --options=options --reconnection_strategy=reconnection_strategy
task --background=background::
exception := catch --trace:
Expand Down

0 comments on commit 1f6399d

Please sign in to comment.