Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1193

INFO log when optional service is not available

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              lichtin Martin Lichtin
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: