mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
e54b24289f
Prepares for onion blob decoding outside of htlcswitch.
17 lines
450 B
Go
17 lines
450 B
Go
package hop
|
|
|
|
import (
|
|
"github.com/btcsuite/btclog"
|
|
)
|
|
|
|
// log is a logger that is initialized with no output filters. This
|
|
// means the package will not perform any logging by default until the caller
|
|
// requests it.
|
|
var log btclog.Logger
|
|
|
|
// UseLogger uses a specified Logger to output package logging info. This
|
|
// function is called from the parent package htlcswitch logger initialization.
|
|
func UseLogger(logger btclog.Logger) {
|
|
log = logger
|
|
}
|