From c5d938ce99c4993c3e2b13fdaf4d67a889f04cbe Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Sat, 23 Apr 2022 19:07:41 -0700 Subject: [PATCH] Use log level provided in options --- infinitime.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infinitime.go b/infinitime.go index 4402a43..8fa0fe4 100644 --- a/infinitime.go +++ b/infinitime.go @@ -90,6 +90,8 @@ func Connect(opts *Options) (*Device, error) { opts = DefaultOptions } + opts.Logger = opts.Logger.Level(opts.LogLevel) + // Set passkey request callback setOnPasskeyReq(opts.OnReqPasskey)