Skip to content

Commit bf56249

Browse files
committed
Compact zmq port mismatch warning log messages
Combine multi-line format strings into fewer lines for readability.
1 parent 3fd1cd9 commit bf56249

1 file changed

Lines changed: 8 additions & 18 deletions

File tree

chainreg/chainregistry.go

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -477,15 +477,10 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) {
477477
return nil, nil, err
478478
}
479479
if url.Port() != zmqPubRawBlockURL.Port() {
480-
log.Warnf(
481-
"zmq block event port mismatch: "+
482-
"lnd is configured for %s but "+
483-
"bitcoind reports %s -- ensure "+
484-
"the ports match or are forwarded "+
485-
"correctly",
486-
zmqPubRawBlockURL.Host,
487-
url.Host,
488-
)
480+
log.Warnf("zmq block event port mismatch: "+
481+
"lnd configured for %s, bitcoind reports %s -- "+
482+
"ensure ports match or are forwarded correctly",
483+
zmqPubRawBlockURL.Host, url.Host)
489484
}
490485
pubRawBlockActive = true
491486
}
@@ -495,15 +490,10 @@ func NewPartialChainControl(cfg *Config) (*PartialChainControl, func(), error) {
495490
return nil, nil, err
496491
}
497492
if url.Port() != zmqPubRawTxURL.Port() {
498-
log.Warnf(
499-
"zmq tx event port mismatch: "+
500-
"lnd is configured for %s but "+
501-
"bitcoind reports %s -- ensure "+
502-
"the ports match or are forwarded "+
503-
"correctly",
504-
zmqPubRawTxURL.Host,
505-
url.Host,
506-
)
493+
log.Warnf("zmq tx event port mismatch: "+
494+
"lnd configured for %s, bitcoind reports %s -- "+
495+
"ensure ports match or are forwarded correctly",
496+
zmqPubRawTxURL.Host, url.Host)
507497
}
508498
pubRawTxActive = true
509499
}

0 commit comments

Comments
 (0)