EG-2564 - Move printed error to logger (#6323)

This commit is contained in:
James Higgs 2020-06-10 10:45:50 +01:00 committed by GitHub
parent 550b446b87
commit 8b7275eb97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,8 +333,7 @@ open class NodeStartup : NodeStartupLogging {
if (devMode) return true
if (!certDirectory.isDirectory()) {
printError("Unable to access certificates directory ${certDirectory}. This could be because the node has not been registered with the Identity Operator.")
printError("Node will now shutdown.")
logger.error("Unable to access certificates directory ${certDirectory}. This could be because the node has not been registered with the Identity Operator. Node will now shutdown")
return false
}
return true