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.DeviceID,
|
||||
[]byte(c.config.PickleKey),
|
||||
logger{},
|
||||
logger{
|
||||
Level: c.config.LogLevel,
|
||||
},
|
||||
)
|
||||
|
||||
err := sqlCryptoStore.CreateTables()
|
||||
|
@ -106,7 +108,9 @@ func (c *Client) Encrypt() error {
|
|||
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()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue