archaius icon indicating copy to clipboard operation
archaius copied to clipboard

Archaius 2.x bridge StaticDeploymentContext "Configuration not yet initialized."

Open agentgt opened this issue 8 years ago • 0 comments

It appears there isn't an easy way to avoid the Archaius 2.x to 1.x bridge from printing out the following:

Configuration not yet initialized.  Returning 'null' for environment
Configuration not yet initialized.  Returning 'null' for datacenter
Configuration not yet initialized.  Returning 'null' for appId
Configuration not yet initialized.  Returning 'null' for serverId
Configuration not yet initialized.  Returning 'null' for stack
Configuration not yet initialized.  Returning 'null' for region
Configuration not yet initialized.  Returning 'null' for zone

If you do:

Injector injector = Guice.createInjector(new ArchaiusModule(), new StaticArchaiusBridgeModule());

How do I avoid the System.out.println messages? I would rather it not print out anything (and definitely not use a logger as that is even worse).

Also sort of tangental it would be nice if there was a 2.x label or milestone :)

agentgt avatar Feb 01 '16 18:02 agentgt