channeldb: initialize migrations logger

This commit is contained in:
Joost Jager committed 2019-10-30 08:56:18 +01:00
1 parent 43449ca7a7
commit f5191440c5
2 files changed
+5 -17

No files matched your search

+2
View File
@@ -3,6 +3,7 @@ package channeldb
import (
"github.com/btcsuite/btclog"
"github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd/channeldb/migration_01_to_11"
)
// log is a logger that is initialized with no output filters. This
@@ -25,4 +26,5 @@ func DisableLog() {
// using btclog.
func UseLogger(logger btclog.Logger) {
log = logger
migration_01_to_11.UseLogger(logger)
}