5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 08:20:28 +00:00

Further tweaks to transition handling

This commit is contained in:
Neil Alexander 2021-06-05 21:49:11 +01:00
parent 4a684e7caf
commit 80b6bf0c78

View File

@ -90,6 +90,8 @@ func readConfig(log *log.Logger, useconf *bool, useconffile *string, normaliseco
pub := priv.Public().(ed25519.PublicKey) pub := priv.Public().(ed25519.PublicKey)
dat["PrivateKey"] = hex.EncodeToString(priv[:]) dat["PrivateKey"] = hex.EncodeToString(priv[:])
dat["PublicKey"] = hex.EncodeToString(pub[:]) dat["PublicKey"] = hex.EncodeToString(pub[:])
} else {
log.Warnln("WARNING: The \"SigningPrivateKey\" configuration option contains an invalid value and will be ignored")
} }
} }
} }
@ -187,7 +189,11 @@ func main() {
logger.Warnln("Logging defaulting to stdout") logger.Warnln("Logging defaulting to stdout")
} }
if *normaliseconf {
setLogLevel("error", logger)
} else {
setLogLevel(*loglevel, logger) setLogLevel(*loglevel, logger)
}
var cfg *config.NodeConfig var cfg *config.NodeConfig
var err error var err error