mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-20 20:08:56 +00:00
Today when running the certgen command, an error message is output by the status logger. This is due to a logger instance being created before logging is configured. This happens because the class initializer for CertificateTool runs the class initializer for ParseField which creates a deprecation logger which creates a logger. This commit fixes this issue by wrapping the parser in another class so that we can defer class initialization until it's actually needed, thus deferring creating the logger instance until after logging is initialized. Relates elastic/elasticsearch#4831 Original commit: elastic/x-pack-elasticsearch@00f978c878