lsat+loopd: add logger

This commit is contained in:
Oliver Gugger 2019-12-05 11:19:11 +01:00
parent 8cecae501c
commit 31bb18255e
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 28 additions and 0 deletions

View file

@ -5,6 +5,7 @@ import (
"github.com/lightninglabs/loop"
"github.com/lightninglabs/loop/lndclient"
"github.com/lightninglabs/loop/loopdb"
"github.com/lightninglabs/loop/lsat"
"github.com/lightningnetwork/lnd/build"
)
@ -19,6 +20,7 @@ func init() {
addSubLogger("LOOP", loop.UseLogger)
addSubLogger("LNDC", lndclient.UseLogger)
addSubLogger("STORE", loopdb.UseLogger)
addSubLogger(lsat.Subsystem, lsat.UseLogger)
}
// addSubLogger is a helper method to conveniently create and register the