Skip to content

Commit

Permalink
downgrade logging level to INFO in BAU places
Browse files Browse the repository at this point in the history
  • Loading branch information
ylexus committed Jul 29, 2024
1 parent d74adaf commit 03fcb51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public synchronized <T extends IO> T remove(String id)
shutdownInstance.shutdown(runtime.context());
long took = System.currentTimeMillis() - start;
if (took > 10)
logger.warn("Shutting down of IO " + shutdownInstance.getId() + " took " + took + "ms");
logger.info("Shutting down of IO {} took {}ms", shutdownInstance.getId(), took);
} catch (LifecycleException e) {
logger.error(e.getMessage(), e);
throw new IOShutdownException(shutdownInstance, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public Runtime initialize() throws InitializeException {
context().config().getProviders().forEach(provider -> {
Provider replaced = providers.put(provider.getType(), provider);
if (replaced != null) {
logger.warn("Replacing auto detected provider {} {} with provider {} from context config",
logger.info("Replacing auto detected provider {} {} with provider {} from context config",
replaced.getType(), replaced.getName(), provider.getName());
}
});
Expand Down Expand Up @@ -375,11 +375,11 @@ private void addProvider(Provider provider, Map<IOType, Provider> providers) {
if (existingProvider.getName().equals(provider.getName()))
throw new InitializeException(
provider.getType() + " with name " + provider.getName() + " is already registered.");
logger.warn("Ignoring provider {} {} with priority {} as lower priority than {} which has priority {}",
logger.info("Ignoring provider {} {} with priority {} as lower priority than {} which has priority {}",
provider.getType(), provider.getName(), provider.getPriority(), existingProvider.getName(),
existingProvider.getPriority());
} else {
logger.warn("Replacing provider {} {} with priority {} with provider {} with higher priority {}",
logger.info("Replacing provider {} {} with priority {} with provider {} with higher priority {}",
existingProvider.getType(), existingProvider.getName(), existingProvider.getPriority(),
provider.getName(), provider.getPriority());
providers.put(provider.getType(), provider);
Expand Down

0 comments on commit 03fcb51

Please sign in to comment.