fu-cheng1 opened a new pull request, #15604:
URL: https://github.com/apache/dubbo/pull/15604

   This change removes the logic in FailsafeLogger that appends the local host 
information to log messages. The motivation is that FailsafeLogger is used by 
the WelcomeLogoApplicationListener to print logs very early during application 
startup—before Spring’s configuration files are fully loaded. As a result, 
NetUtils resolves and caches the local host information prematurely. This 
prevents the application from re-evaluating the preferred network interface 
later based on user-defined configuration. To avoid this issue, the host 
resolution in FailsafeLogger has been removed.
   
   A new class, DubboNetInterfaceConfigApplicationListener, has been introduced 
to retrieve the preferred network interface configuration from Spring’s 
Environment and set it as a system property—since NetUtils reads this value 
from environment variables. This listener listens to the 
ApplicationContextInitializedEvent, which ensures that the Spring Environment 
(including values from configuration centers) is fully prepared when the 
listener executes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to