mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
In this commit, the code for migration 4 is added. This migration takes all the existing session acked updates and migrates them to be stored in the RangeIndex form instead. Note that this migration is not activated in this commit. This is done in a follow up commit in order to keep this one smaller.
14 lines
355 B
Go
14 lines
355 B
Go
package migration4
|
|
|
|
import (
|
|
"github.com/btcsuite/btclog"
|
|
)
|
|
|
|
// log is a logger that is initialized as disabled. This means the package will
|
|
// not perform any logging by default until a logger is set.
|
|
var log = btclog.Disabled
|
|
|
|
// UseLogger uses a specified Logger to output package logging info.
|
|
func UseLogger(logger btclog.Logger) {
|
|
log = logger
|
|
}
|