Martin Lichtin created ARIES-1193:
-------------------------------------

             Summary: INFO log when optional service is not available
                 Key: ARIES-1193
                 URL: https://issues.apache.org/jira/browse/ARIES-1193
             Project: Aries
          Issue Type: Bug
            Reporter: Martin Lichtin
            Priority: Minor


Can the log level be reconsidered?

                    if (metadata.getAvailability() == 
ServiceReferenceMetadata.AVAILABILITY_MANDATORY) {
                        LOGGER.info("Timeout expired when waiting for mandatory 
OSGi service reference {}", getOsgiFilter());
                        throw new ServiceUnavailableException("Timeout expired 
when waiting for mandatory OSGi service reference: " + getOsgiFilter(), 
getOsgiFilter());
                    } else {
                        LOGGER.info("No matching service for optional OSGi 
service reference {}", getOsgiFilter());
                        throw new ServiceUnavailableException("No matching 
service for optional OSGi service reference: " + getOsgiFilter(), 
getOsgiFilter());
                    }

I don't see the need to repeatedly emit INFO logs for an optional service not 
being around. Can it be changed to DEBUG level?

On the other side, for a mandatory service, the INFO log could become a WARN, 
perhaps.




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to