Skip to content

Commit 2e92026

Browse files
committed
multi: update deps for btclog v2 module
1 parent 15ee978 commit 2e92026

File tree

21 files changed

+97
-68
lines changed

21 files changed

+97
-68
lines changed

fsm/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package fsm
22

33
import (
4-
"github.com/btcsuite/btclog"
4+
"github.com/btcsuite/btclog/v2"
55
"github.com/lightningnetwork/lnd/build"
66
)
77

go.mod

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ require (
66
github.com/btcsuite/btcd/btcutil v1.1.5
77
github.com/btcsuite/btcd/btcutil/psbt v1.1.8
88
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
9-
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
10-
github.com/btcsuite/btcwallet v0.16.10-0.20240809133323-7d3434c65ae2
11-
github.com/btcsuite/btcwallet/wtxmgr v1.5.3
9+
github.com/btcsuite/btclog/v2 v2.0.0-20241017175713-3428138b75c7
10+
github.com/btcsuite/btcwallet v0.16.10-0.20240912233857-ffb143c77cc5
11+
github.com/btcsuite/btcwallet/wtxmgr v1.5.4
1212
github.com/coreos/bbolt v1.3.3
1313
github.com/davecgh/go-spew v1.1.1
1414
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0
@@ -23,7 +23,7 @@ require (
2323
github.com/lightninglabs/lndclient v0.18.4-0
2424
github.com/lightninglabs/loop/looprpc v1.0.0
2525
github.com/lightninglabs/loop/swapserverrpc v1.0.8
26-
github.com/lightningnetwork/lnd v0.18.3-beta.rc3.0.20241011124628-ca3bde901eb8
26+
github.com/lightningnetwork/lnd v0.18.0-beta.rc4.0.20241022180056-b4ef22bf4722
2727
github.com/lightningnetwork/lnd/cert v1.2.2
2828
github.com/lightningnetwork/lnd/clock v1.1.1
2929
github.com/lightningnetwork/lnd/queue v1.1.1
@@ -51,10 +51,11 @@ require (
5151
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
5252
github.com/aead/siphash v1.0.1 // indirect
5353
github.com/beorn7/perks v1.0.1 // indirect
54-
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 // indirect
55-
github.com/btcsuite/btcwallet/wallet/txrules v1.2.1 // indirect
56-
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.4 // indirect
57-
github.com/btcsuite/btcwallet/walletdb v1.4.2 // indirect
54+
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c // indirect
55+
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5 // indirect
56+
github.com/btcsuite/btcwallet/wallet/txrules v1.2.2 // indirect
57+
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.5 // indirect
58+
github.com/btcsuite/btcwallet/walletdb v1.4.4 // indirect
5859
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect
5960
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect
6061
github.com/btcsuite/winsvc v1.0.0 // indirect
@@ -108,11 +109,12 @@ require (
108109
github.com/json-iterator/go v1.1.12 // indirect
109110
github.com/juju/loggo v0.0.0-20210728185423-eebad3a902c4 // indirect
110111
github.com/kkdai/bstream v1.0.0 // indirect
112+
github.com/klauspost/compress v1.17.9 // indirect
111113
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf // indirect
112114
github.com/lightninglabs/neutrino v0.16.1-0.20240425105051-602843d34ffd // indirect
113115
github.com/lightninglabs/neutrino/cache v1.1.2 // indirect
114116
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb // indirect
115-
github.com/lightningnetwork/lnd/fn v1.2.1 // indirect
117+
github.com/lightningnetwork/lnd/fn v1.2.3 // indirect
116118
github.com/lightningnetwork/lnd/healthcheck v1.2.5 // indirect
117119
github.com/lightningnetwork/lnd/kvdb v1.4.10 // indirect
118120
github.com/lightningnetwork/lnd/sqldb v1.0.4 // indirect
@@ -152,7 +154,7 @@ require (
152154
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
153155
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
154156
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec // indirect
155-
go.etcd.io/bbolt v1.3.7 // indirect
157+
go.etcd.io/bbolt v1.3.11 // indirect
156158
go.etcd.io/etcd/api/v3 v3.5.7 // indirect
157159
go.etcd.io/etcd/client/pkg/v3 v3.5.7 // indirect
158160
go.etcd.io/etcd/client/v2 v2.305.7 // indirect
@@ -209,3 +211,9 @@ replace github.com/lightninglabs/loop/looprpc => ./looprpc
209211
go 1.22.6
210212

211213
toolchain go1.22.7
214+
215+
replace (
216+
github.com/lightninglabs/aperture => github.com/ellemouton/aperture v0.0.0-20241027051805-8cd28634e3bc
217+
github.com/lightninglabs/lndclient => github.com/ellemouton/lndclient v1.0.1-0.20241023065244-170dbf90b579
218+
github.com/lightningnetwork/lnd => github.com/ellemouton/lnd v0.8.0-beta-rc3.0.20241026121832-a03d5fcb9e11
219+
)

go.sum

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -664,21 +664,24 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtyd
664664
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc=
665665
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 h1:59Kx4K6lzOW5w6nFlA0v5+lk/6sjybR934QNHSJZPTQ=
666666
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc=
667-
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo=
668667
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
668+
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c h1:4HxD1lBUGUddhzgaNgrCPsFWd7cGYNpeFUgd9ZIgyM0=
669+
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c/go.mod h1:w7xnGOhwT3lmrS4H3b/D1XAXxvh+tbhUm8xeHN2y3TQ=
670+
github.com/btcsuite/btclog/v2 v2.0.0-20241017175713-3428138b75c7 h1:3Ct3zN3VCEKVm5nceWBBEKczc+jvTfVyOEG71ob2Yuc=
671+
github.com/btcsuite/btclog/v2 v2.0.0-20241017175713-3428138b75c7/go.mod h1:XItGUfVOxotJL8kkuk2Hj3EVow5KCugXl3wWfQ6K0AE=
669672
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
670-
github.com/btcsuite/btcwallet v0.16.10-0.20240809133323-7d3434c65ae2 h1:qa4Avm7p97JroZZyMJADbEb9u853pjleJYSeitENvLc=
671-
github.com/btcsuite/btcwallet v0.16.10-0.20240809133323-7d3434c65ae2/go.mod h1:X2xDre+j1QphTRo54y2TikUzeSvreL1t1aMXrD8Kc5A=
672-
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 h1:poyHFf7+5+RdxNp5r2T6IBRD7RyraUsYARYbp/7t4D8=
673-
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4/go.mod h1:GETGDQuyq+VFfH1S/+/7slLM/9aNa4l7P4ejX6dJfb0=
674-
github.com/btcsuite/btcwallet/wallet/txrules v1.2.1 h1:UZo7YRzdHbwhK7Rhv3PO9bXgTxiOH45edK5qdsdiatk=
675-
github.com/btcsuite/btcwallet/wallet/txrules v1.2.1/go.mod h1:MVSqRkju/IGxImXYPfBkG65FgEZYA4fXchheILMVl8g=
676-
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.4 h1:nmcKAVTv/cmYrs0A4hbiC6Qw+WTLYy/14SmTt3mLnCo=
677-
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.4/go.mod h1:YqJR8WAAHiKIPesZTr9Cx9Az4fRhRLcJ6GcxzRUZCAc=
678-
github.com/btcsuite/btcwallet/walletdb v1.4.2 h1:zwZZ+zaHo4mK+FAN6KeK85S3oOm+92x2avsHvFAhVBE=
679-
github.com/btcsuite/btcwallet/walletdb v1.4.2/go.mod h1:7ZQ+BvOEre90YT7eSq8bLoxTsgXidUzA/mqbRS114CQ=
680-
github.com/btcsuite/btcwallet/wtxmgr v1.5.3 h1:QrWCio9Leh3DwkWfp+A1SURj8pYn3JuTLv3waP5uEro=
681-
github.com/btcsuite/btcwallet/wtxmgr v1.5.3/go.mod h1:M4nQpxGTXiDlSOODKXboXX7NFthmiBNjzAKKNS7Fhjg=
673+
github.com/btcsuite/btcwallet v0.16.10-0.20240912233857-ffb143c77cc5 h1:zYy233eUBvkF3lq2MUkybEhxhDsrRDSgiToIKN57mtk=
674+
github.com/btcsuite/btcwallet v0.16.10-0.20240912233857-ffb143c77cc5/go.mod h1:1HJXYbjJzgumlnxOC2+ViR1U+gnHWoOn7WeK5OfY1eU=
675+
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5 h1:Rr0njWI3r341nhSPesKQ2JF+ugDSzdPoeckS75SeDZk=
676+
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5/go.mod h1:+tXJ3Ym0nlQc/iHSwW1qzjmPs3ev+UVWMbGgfV1OZqU=
677+
github.com/btcsuite/btcwallet/wallet/txrules v1.2.2 h1:YEO+Lx1ZJJAtdRrjuhXjWrYsmAk26wLTlNzxt2q0lhk=
678+
github.com/btcsuite/btcwallet/wallet/txrules v1.2.2/go.mod h1:4v+grppsDpVn91SJv+mZT7B8hEV4nSmpREM4I8Uohws=
679+
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.5 h1:93o5Xz9dYepBP4RMFUc9RGIFXwqP2volSWRkYJFrNtI=
680+
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.5/go.mod h1:lQ+e9HxZ85QP7r3kdxItkiMSloSLg1PEGis5o5CXUQw=
681+
github.com/btcsuite/btcwallet/walletdb v1.4.4 h1:BDel6iT/ltYSIYKs0YbjwnEDi7xR3yzABIsQxN2F1L8=
682+
github.com/btcsuite/btcwallet/walletdb v1.4.4/go.mod h1:jk/hvpLFINF0C1kfTn0bfx2GbnFT+Nvnj6eblZALfjs=
683+
github.com/btcsuite/btcwallet/wtxmgr v1.5.4 h1:hJjHy1h/dJwSfD9uDsCwcH21D1iOrus6OrI5gR9E/O0=
684+
github.com/btcsuite/btcwallet/wtxmgr v1.5.4/go.mod h1:lAv0b1Vj9Ig5U8QFm0yiJ9WqPl8yGO/6l7JxdHY1PKE=
682685
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw=
683686
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg=
684687
github.com/btcsuite/golangcrypto v0.0.0-20150304025918-53f62d9b43e8/go.mod h1:tYvUd8KLhm/oXvUeSEs2VlLghFjQt9+ZaF9ghH0JNjc=
@@ -776,6 +779,12 @@ github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3
776779
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
777780
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
778781
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
782+
github.com/ellemouton/aperture v0.0.0-20241027051805-8cd28634e3bc h1:/TldIQ39pY879I6544R7p7tSURI52sTrLY2M6CNTaeo=
783+
github.com/ellemouton/aperture v0.0.0-20241027051805-8cd28634e3bc/go.mod h1:rOetkvJdd66Ctg9fMAuw1492xcvw10uCvKu0AfrxAO4=
784+
github.com/ellemouton/lnd v0.8.0-beta-rc3.0.20241026121832-a03d5fcb9e11 h1:WaKXIKKKVulx4xlIepGH+EJalMqq+khDWkQgdXpxrqk=
785+
github.com/ellemouton/lnd v0.8.0-beta-rc3.0.20241026121832-a03d5fcb9e11/go.mod h1:AAijN90Q69V+vPQ7rSaf7Ui7KGdLBU7g7XKnQb2apw8=
786+
github.com/ellemouton/lndclient v1.0.1-0.20241023065244-170dbf90b579 h1:VBfkVqSHpr7d0ZCX8kmSlPKb/yfwCfmlqPP5eQmndfc=
787+
github.com/ellemouton/lndclient v1.0.1-0.20241023065244-170dbf90b579/go.mod h1:YBHDD/95qTbfpmKJMwSEDhJT9b3lMx8SDzwWetpYQgg=
779788
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
780789
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
781790
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
@@ -1093,6 +1102,8 @@ github.com/kkdai/bstream v1.0.0 h1:Se5gHwgp2VT2uHfDrkbbgbgEvV9cimLELwrPJctSjg8=
10931102
github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+NVZZA=
10941103
github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE=
10951104
github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU=
1105+
github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA=
1106+
github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
10961107
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
10971108
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
10981109
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
@@ -1115,12 +1126,8 @@ github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
11151126
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
11161127
github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
11171128
github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
1118-
github.com/lightninglabs/aperture v0.3.2-beta h1:J2GQwBmSHxpr5VOatXbgrTogF/qN2l6UWLPHfIowq10=
1119-
github.com/lightninglabs/aperture v0.3.2-beta/go.mod h1:M/5dPzHjHvuYXQuxzicqaGiCclHUvKW6N0ay1t/HGiM=
11201129
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI/f/O0Avg7t8sqkPo78HFzjmeYFl6DPnc=
11211130
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk=
1122-
github.com/lightninglabs/lndclient v0.18.4-0 h1:TdorvV9UIw3fjZrNpVKn3fpsOdw2KWF2Eqdx7+++lcY=
1123-
github.com/lightninglabs/lndclient v0.18.4-0/go.mod h1:LbINSPfKEdZuTGqqJ+ZmUxXWNvUCaDqrZeJ7/Al0Z3Y=
11241131
github.com/lightninglabs/neutrino v0.16.1-0.20240425105051-602843d34ffd h1:D8aRocHpoCv43hL8egXEMYyPmyOiefFHZ66338KQB2s=
11251132
github.com/lightninglabs/neutrino v0.16.1-0.20240425105051-602843d34ffd/go.mod h1:x3OmY2wsA18+Kc3TSV2QpSUewOCiscw2mKpXgZv2kZk=
11261133
github.com/lightninglabs/neutrino/cache v1.1.2 h1:C9DY/DAPaPxbFC+xNNEI/z1SJY9GS3shmlu5hIQ798g=
@@ -1129,14 +1136,12 @@ github.com/lightninglabs/protobuf-go-hex-display v1.33.0-hex-display h1:Y2WiPkBS
11291136
github.com/lightninglabs/protobuf-go-hex-display v1.33.0-hex-display/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
11301137
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb h1:yfM05S8DXKhuCBp5qSMZdtSwvJ+GFzl94KbXMNB1JDY=
11311138
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb/go.mod h1:c0kvRShutpj3l6B9WtTsNTBUtjSmjZXbJd9ZBRQOSKI=
1132-
github.com/lightningnetwork/lnd v0.18.3-beta.rc3.0.20241011124628-ca3bde901eb8 h1:+z0s8M0QItH51qMPgFGlRvi6uBltbURQj6u1srTyRb4=
1133-
github.com/lightningnetwork/lnd v0.18.3-beta.rc3.0.20241011124628-ca3bde901eb8/go.mod h1:gzVQkOCZxTLzlUPqnI6t68FVGLbiO6Jj+TcLb4b78n0=
11341139
github.com/lightningnetwork/lnd/cert v1.2.2 h1:71YK6hogeJtxSxw2teq3eGeuy4rHGKcFf0d0Uy4qBjI=
11351140
github.com/lightningnetwork/lnd/cert v1.2.2/go.mod h1:jQmFn/Ez4zhDgq2hnYSw8r35bqGVxViXhX6Cd7HXM6U=
11361141
github.com/lightningnetwork/lnd/clock v1.1.1 h1:OfR3/zcJd2RhH0RU+zX/77c0ZiOnIMsDIBjgjWdZgA0=
11371142
github.com/lightningnetwork/lnd/clock v1.1.1/go.mod h1:mGnAhPyjYZQJmebS7aevElXKTFDuO+uNFFfMXK1W8xQ=
1138-
github.com/lightningnetwork/lnd/fn v1.2.1 h1:pPsVGrwi9QBwdLJzaEGK33wmiVKOxs/zc8H7+MamFf0=
1139-
github.com/lightningnetwork/lnd/fn v1.2.1/go.mod h1:SyFohpVrARPKH3XVAJZlXdVe+IwMYc4OMAvrDY32kw0=
1143+
github.com/lightningnetwork/lnd/fn v1.2.3 h1:Q1OrgNSgQynVheBNa16CsKVov1JI5N2AR6G07x9Mles=
1144+
github.com/lightningnetwork/lnd/fn v1.2.3/go.mod h1:SyFohpVrARPKH3XVAJZlXdVe+IwMYc4OMAvrDY32kw0=
11401145
github.com/lightningnetwork/lnd/healthcheck v1.2.5 h1:aTJy5xeBpcWgRtW/PGBDe+LMQEmNm/HQewlQx2jt7OA=
11411146
github.com/lightningnetwork/lnd/healthcheck v1.2.5/go.mod h1:G7Tst2tVvWo7cx6mSBEToQC5L1XOGxzZTPB29g9Rv2I=
11421147
github.com/lightningnetwork/lnd/kvdb v1.4.10 h1:vK89IVv1oVH9ubQWU+EmoCQFeVRaC8kfmOrqHbY5zoY=
@@ -1342,8 +1347,8 @@ github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaD
13421347
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
13431348
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec h1:FpfFs4EhNehiVfzQttTuxanPIT43FtkkCFypIod8LHo=
13441349
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec/go.mod h1:BZ1RAoRPbCxum9Grlv5aeksu2H8BiKehBYooU2LFiOQ=
1345-
go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ=
1346-
go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw=
1350+
go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0=
1351+
go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I=
13471352
go.etcd.io/etcd/api/v3 v3.5.7 h1:sbcmosSVesNrWOJ58ZQFitHMdncusIifYcrBfwrlJSY=
13481353
go.etcd.io/etcd/api/v3 v3.5.7/go.mod h1:9qew1gCdDDLu+VwmeG+iFpL+QlpHTo7iubavdVDgCAA=
13491354
go.etcd.io/etcd/client/pkg/v3 v3.5.7 h1:y3kf5Gbp4e4q7egZdn5T7W9TSHUvkClN6u+Rq9mEOmg=

instantout/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package instantout
22

33
import (
4-
"github.com/btcsuite/btclog"
4+
"github.com/btcsuite/btclog/v2"
55
"github.com/lightningnetwork/lnd/build"
66
)
77

instantout/reservation/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package reservation
22

33
import (
4-
"github.com/btcsuite/btclog"
4+
"github.com/btcsuite/btclog/v2"
55
"github.com/lightningnetwork/lnd/build"
66
)
77

liquidity/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package liquidity
22

33
import (
4-
"github.com/btcsuite/btclog"
4+
"github.com/btcsuite/btclog/v2"
55
"github.com/lightningnetwork/lnd/build"
66
)
77

log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package loop
22

33
import (
4-
"github.com/btcsuite/btclog"
4+
"github.com/btcsuite/btclog/v2"
55
"github.com/lightningnetwork/lnd/build"
66
)
77

loopd/config.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/btcsuite/btcd/btcutil"
1313
"github.com/lightninglabs/aperture/l402"
1414
"github.com/lightninglabs/loop/loopdb"
15+
"github.com/lightningnetwork/lnd/build"
1516
"github.com/lightningnetwork/lnd/cert"
1617
"github.com/lightningnetwork/lnd/lncfg"
1718
"github.com/lightningnetwork/lnd/lnrpc"
@@ -111,6 +112,8 @@ var (
111112
// DefaultAutogenValidity is the default validity of a self-signed
112113
// certificate in number of days.
113114
DefaultAutogenValidity = 365 * 24 * time.Hour
115+
116+
defaultLogCompressor = build.Gzip
114117
)
115118

116119
type lndConfig struct {
@@ -169,6 +172,7 @@ type Config struct {
169172
MacaroonPath string `long:"macaroonpath" description:"Path to write the macaroon for loop's RPC and REST services if it doesn't exist."`
170173

171174
LogDir string `long:"logdir" description:"Directory to log output."`
175+
LogCompressor string `long:"logcompressor" description:"Compression algorithm to use when rotating logs." choice:"gzip" choice:"zstd"`
172176
MaxLogFiles int `long:"maxlogfiles" description:"Maximum logfiles to keep (0 for no rotation)."`
173177
MaxLogFileSize int `long:"maxlogfilesize" description:"Maximum logfile size in MB."`
174178

@@ -192,6 +196,8 @@ type Config struct {
192196
Server *loopServerConfig `group:"server" namespace:"server"`
193197

194198
View viewParameters `command:"view" alias:"v" description:"View all swaps in the database. This command can only be executed when loopd is not running."`
199+
200+
Logging *build.LogConfig `group:"logging" namespace:"logging"`
195201
}
196202

197203
const (
@@ -235,6 +241,8 @@ func DefaultConfig() Config {
235241
MacaroonPath: DefaultLndMacaroonPath,
236242
RPCTimeout: DefaultLndRPCTimeout,
237243
},
244+
Logging: build.DefaultLogConfig(),
245+
LogCompressor: defaultLogCompressor,
238246
}
239247
}
240248

loopd/log.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package loopd
22

33
import (
4-
"github.com/btcsuite/btclog"
4+
"github.com/btcsuite/btclog/v2"
55
"github.com/lightninglabs/aperture/l402"
66
"github.com/lightninglabs/lndclient"
77
"github.com/lightninglabs/loop"
@@ -20,16 +20,16 @@ import (
2020
const Subsystem = "LOOPD"
2121

2222
var (
23-
logWriter *build.RotatingLogWriter
23+
subLogMgr *build.SubLoggerManager
2424
log btclog.Logger
2525
interceptor signal.Interceptor
2626
)
2727

2828
// SetupLoggers initializes all package-global logger variables.
29-
func SetupLoggers(root *build.RotatingLogWriter, intercept signal.Interceptor) {
29+
func SetupLoggers(root *build.SubLoggerManager, intercept signal.Interceptor) {
3030
genLogger := genSubLogger(root, intercept)
3131

32-
logWriter = root
32+
subLogMgr = root
3333
log = build.NewSubLogger(Subsystem, genLogger)
3434
interceptor = intercept
3535

@@ -56,7 +56,7 @@ func SetupLoggers(root *build.RotatingLogWriter, intercept signal.Interceptor) {
5656

5757
// genSubLogger creates a logger for a subsystem. We provide an instance of
5858
// a signal.Interceptor to be able to shutdown in the case of a critical error.
59-
func genSubLogger(root *build.RotatingLogWriter,
59+
func genSubLogger(root *build.SubLoggerManager,
6060
interceptor signal.Interceptor) func(string) btclog.Logger {
6161

6262
// Create a shutdown function which will request shutdown from our

loopd/run.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func Run(rpcCfg RPCConfig) error {
183183
// Special show command to list supported subsystems and exit.
184184
if config.DebugLevel == "show" {
185185
fmt.Printf("Supported subsystems: %v\n",
186-
logWriter.SupportedSubsystems())
186+
subLogMgr.SupportedSubsystems())
187187
os.Exit(0)
188188
}
189189

@@ -203,16 +203,19 @@ func Run(rpcCfg RPCConfig) error {
203203

204204
// Initialize logging at the default logging level.
205205
logWriter := build.NewRotatingLogWriter()
206-
SetupLoggers(logWriter, shutdownInterceptor)
206+
subLogMgr := build.NewSubLoggerManager(
207+
build.NewDefaultLogHandlers(config.Logging, logWriter)...,
208+
)
209+
SetupLoggers(subLogMgr, shutdownInterceptor)
207210

208211
err = logWriter.InitLogRotator(
209212
filepath.Join(config.LogDir, defaultLogFilename),
210-
config.MaxLogFileSize, config.MaxLogFiles,
213+
config.LogCompressor, config.MaxLogFileSize, config.MaxLogFiles,
211214
)
212215
if err != nil {
213216
return err
214217
}
215-
err = build.ParseAndSetDebugLevels(config.DebugLevel, logWriter)
218+
err = build.ParseAndSetDebugLevels(config.DebugLevel, subLogMgr)
216219
if err != nil {
217220
return err
218221
}

0 commit comments

Comments
 (0)