Browse Source

Merge fcc771f3e3 into 3ba3d4600f

pull/369/merge
Janne Heß 7 months ago
committed by GitHub
parent
commit
6c8e514623
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      clients/clients.go

10
clients/clients.go

@ -55,6 +55,15 @@ func (c *Clients) Update(config api.ClientConfig) (api.ClientConfig, error) {
return old.config, err
}
type MautrixLogger struct{}
func (d *MautrixLogger) Debugfln(message string, args ...interface{}) {
log.Debugf(message, args...)
}
func (d *MautrixLogger) Warnfln(message string, args ...interface{}) {
log.Warnf(message, args...)
}
// Start listening on client /sync streams
func (c *Clients) Start() error {
configs, err := c.db.LoadMatrixClientConfigs()
@ -338,6 +347,7 @@ func (c *Clients) initClient(botClient *BotClient) error {
return err
}
client.Logger = &MautrixLogger{}
client.Client = c.httpClient
client.DeviceID = config.DeviceID
if client.DeviceID == "" {

Loading…
Cancel
Save