From d318c584dab5889cf631c0ab01afc324431410cd Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Sat, 16 Apr 2022 04:28:53 -0700 Subject: [PATCH] Use new changes in infinitime library to stop removing InfiniTime devices (Fixes #10) --- go.mod | 2 +- go.sum | 4 ++-- main.go | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index cf88184..80f30d1 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,7 @@ require ( github.com/srwiley/rasterx v0.0.0-20210519020934-456a8d69b780 // indirect github.com/urfave/cli/v2 v2.3.0 github.com/yuin/goldmark v1.4.4 // indirect - go.arsenm.dev/infinitime v0.0.0-20220304200437-7026da3f6f14 + go.arsenm.dev/infinitime v0.0.0-20220416112421-b7a50271bece golang.org/x/image v0.0.0-20211028202545-6944b10bf410 // indirect golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect golang.org/x/text v0.3.7 diff --git a/go.sum b/go.sum index e178daa..af5d53f 100644 --- a/go.sum +++ b/go.sum @@ -200,8 +200,8 @@ github.com/yuin/goldmark v1.3.8/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.4 h1:zNWRjYUW32G9KirMXYHQHVNFkXvMI7LpgNW2AgYAoIs= github.com/yuin/goldmark v1.4.4/go.mod h1:rmuwmfZ0+bvzB24eSC//bk1R1Zp3hM0OXYv/G2LIilg= -go.arsenm.dev/infinitime v0.0.0-20220304200437-7026da3f6f14 h1:VCUKDxm7S+AS1wgP/eKsbvnvG2y/vMddZU3Ib8fAoOI= -go.arsenm.dev/infinitime v0.0.0-20220304200437-7026da3f6f14/go.mod h1:Prvwx7Y2y8HsNRA1tPptduW9jzuw/JffmocvoHcDbYo= +go.arsenm.dev/infinitime v0.0.0-20220416112421-b7a50271bece h1:ns/GMc4E8ZUZ9TEXhXgU4M+5sRaOLTFFoBWEJ67p3YM= +go.arsenm.dev/infinitime v0.0.0-20220416112421-b7a50271bece/go.mod h1:Prvwx7Y2y8HsNRA1tPptduW9jzuw/JffmocvoHcDbYo= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= diff --git a/main.go b/main.go index a21a5c1..470270c 100644 --- a/main.go +++ b/main.go @@ -29,6 +29,7 @@ import ( "github.com/gen2brain/dlgs" "github.com/knadh/koanf" "github.com/mattn/go-isatty" + "github.com/rs/zerolog" "github.com/rs/zerolog/log" "go.arsenm.dev/infinitime" ) @@ -64,6 +65,8 @@ func main() { WhitelistEnabled: k.Bool("conn.whitelist.enabled"), Whitelist: k.Strings("conn.whitelist.devices"), OnReqPasskey: onReqPasskey, + Logger: log.Logger, + LogLevel: zerolog.WarnLevel, } // Connect to InfiniTime with default options