philippseith / signalr

SignalR server and client in go
MIT License
133 stars 39 forks source link

Client: missing log messages with AutoReconnect option #105

Closed andig closed 2 years ago

andig commented 2 years ago

I'm using the client with logging like this:

client, err := signalr.NewClient(context.Background(),
    signalr.WithAutoReconnect(c.connect(ts)),
    signalr.WithReceiver(c),
    signalr.Logger(easee.SignalrLogger(c.log.TRACE), true),
)

If the connect method errors, hence a connection is never established, the log will not contain any messages.

I would have expected that, at least after the initial connect, the failed reconnect attempts would appear in the logs.

philippseith commented 2 years ago

See #106