Ovidiu Feodorov created YUNIKORN-2320: -----------------------------------------
Summary: Package-level logger triggers early log system initialization, preventing custom logging configuration Key: YUNIKORN-2320 URL: https://issues.apache.org/jira/browse/YUNIKORN-2320 Project: Apache YuniKorn Issue Type: Bug Reporter: Ovidiu Feodorov {{objects.rateLimitedLog}} is initialized during package initialization phase, triggering {{log.once}} before {{log.InitializeLogger()}} has a chance to apply custom logging configuration. As result, the logging system does not accept custom configuration. {{entrypoint.TestCustomLoggingConfiguration()}} demonstrates the problem. There are several way to address the problem: 1. Lazy initialize the package-level logging variable {{objects.rateLimitedLog.}} 2. (preferred) Remove the package-level variable and replace it with an Application instance-level variable, which is also lazily initialized. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org For additional commands, e-mail: dev-h...@yunikorn.apache.org