5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 22:15:46 +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)
dat["PrivateKey"] = hex.EncodeToString(priv[:])
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")
}
setLogLevel(*loglevel, logger)
if *normaliseconf {
setLogLevel("error", logger)
} else {
setLogLevel(*loglevel, logger)
}
var cfg *config.NodeConfig
var err error