Browse Source

use log.Warn instead of log.Warning

pull/1418/head
Marten Seemann 4 years ago
parent
commit
ff00d9c72b
  1. 2
      p2p/transport/tcp/reuseport.go

2
p2p/transport/tcp/reuseport.go

@ -23,7 +23,7 @@ func init() {
} }
v, exist := os.LookupEnv(deprecatedEnvReuseport) v, exist := os.LookupEnv(deprecatedEnvReuseport)
if exist { if exist {
log.Warning("IPFS_REUSEPORT is deprecated, use LIBP2P_TCP_REUSEPORT instead") log.Warn("IPFS_REUSEPORT is deprecated, use LIBP2P_TCP_REUSEPORT instead")
if v == "false" || v == "f" || v == "0" { if v == "false" || v == "f" || v == "0" {
envReuseportVal = false envReuseportVal = false
log.Infof("REUSEPORT disabled (IPFS_REUSEPORT=%s)", v) log.Infof("REUSEPORT disabled (IPFS_REUSEPORT=%s)", v)

Loading…
Cancel
Save