Update mautrix-go and switch to zerolog

This commit is contained in:
Tulir Asokan
2023-02-26 21:50:16 +02:00
parent cace8b5939
commit 77b230f4d8
7 changed files with 53 additions and 40 deletions

View File

@@ -45,7 +45,7 @@ func (br *DiscordBridge) newDoublePuppetClient(mxid id.UserID, accessToken strin
return nil, err
}
client.Logger = br.AS.Log.Sub(mxid.String())
client.Log = br.AS.Log.With().Str("as_user_id", mxid.String()).Logger()
client.Client = br.AS.HTTPClient
client.DefaultHTTPRetries = br.AS.DefaultHTTPRetries