Actually pass log level to logger
This commit is contained in:
parent
a28313b077
commit
007f2ab630
|
@ -98,7 +98,9 @@ func (c *Client) Encrypt() error {
|
||||||
c.client.UserID.String(),
|
c.client.UserID.String(),
|
||||||
c.client.DeviceID,
|
c.client.DeviceID,
|
||||||
[]byte(c.config.PickleKey),
|
[]byte(c.config.PickleKey),
|
||||||
logger{},
|
logger{
|
||||||
|
Level: c.config.LogLevel,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
err := sqlCryptoStore.CreateTables()
|
err := sqlCryptoStore.CreateTables()
|
||||||
|
@ -106,7 +108,9 @@ func (c *Client) Encrypt() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
c.olmMachine = crypto.NewOlmMachine(c.client, &logger{}, sqlCryptoStore, c.store)
|
c.olmMachine = crypto.NewOlmMachine(c.client, &logger{
|
||||||
|
Level: c.config.LogLevel,
|
||||||
|
}, sqlCryptoStore, c.store)
|
||||||
|
|
||||||
err = c.olmMachine.Load()
|
err = c.olmMachine.Load()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue