mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 01:55:44 +00:00
fix: substrate runner, support new libp2p addr log (#1892)
This commit is contained in:
@@ -291,7 +291,10 @@ fn try_find_substrate_port_from_output(r: impl Read + Send + 'static) -> Substra
|
|||||||
|
|
||||||
// Parse the p2p port line (present in debug logs)
|
// Parse the p2p port line (present in debug logs)
|
||||||
let p2p_port_line = line
|
let p2p_port_line = line
|
||||||
|
// oldest message:
|
||||||
.rsplit_once("New listen address: /ip4/127.0.0.1/tcp/")
|
.rsplit_once("New listen address: /ip4/127.0.0.1/tcp/")
|
||||||
|
// slightly newer message:
|
||||||
|
.or_else(|| line.rsplit_once("New listen address address=/ip4/127.0.0.1/tcp/"))
|
||||||
.map(|(_, address_str)| address_str);
|
.map(|(_, address_str)| address_str);
|
||||||
|
|
||||||
if let Some(line_port) = p2p_port_line {
|
if let Some(line_port) = p2p_port_line {
|
||||||
|
|||||||
Reference in New Issue
Block a user