Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-7509

Discovery.Pinger seems to ignore loglevel

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 15.0.1
    • Fix Version/s: 16.0.4, Meridian-2016.1.0
    • Component/s: Logging
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
    • Sprint:
      Newts - Phase 6

      Description

      Logging is restricted to level WARN, logfile contains debugging lines...

      log4j2.xml:

              <KeyValuePair key="discovery"            value="WARN" />
      

      discover.log:

      2015-02-26 13:18:31,690 INFO  [Main] o.o.n.d.AbstractServiceDaemon: discover started.
      2015-02-26 13:18:31,690 DEBUG [Main] o.o.n.d.AbstractSpringContextJmxServiceDaemon: SPRING: context.classLoader= java.net.FactoryURLClassLoader@52e21a17
      2015-02-26 13:18:31,690 INFO  [Main] o.o.n.d.AbstractSpringContextJmxServiceDaemon: discover initialization complete.
      2015-02-26 13:19:01,696 INFO  [Discovery.Pinger] o.o.n.d.Discovery: starting ping sweep
      2015-02-26 13:19:01,696 DEBUG [Discovery.Pinger] o.o.n.c.DiscoveryConfigFactory: init: config file path: /opt/opennms/etc/discovery-configuration.xml
      2015-02-26 13:19:01,700 DEBUG [Discovery.Pinger] o.o.n.c.DiscoveryConfigFactory: Looking for matching foreign source specific IP or IP range with address: /193.196.64.0...
      2015-02-26 13:19:01,700 DEBUG [Discovery.Pinger] o.o.n.c.DiscoveryConfigFactory: Found foreign source null with address /193.196.64.0 in the range begin: 193.196.64.0 and end: 193.196.127.255.
      2015-02-26 13:19:01,700 DEBUG [Discovery.Pinger] o.o.n.d.Discovery: Pinging: /193.196.64.0 of foreign source null
      

      opennms-15.0.1-1/opennms-services/src/main/java/org/opennms/netmgt/discovery/Discovery.java:

      @EventListener(name="OpenNMS.Discovery", logPrefix="discover")
      public class Discovery extends AbstractServiceDaemon {
      
          private static final Logger LOG = LoggerFactory.getLogger(Discovery.class);
      
          /**
           * The callback that sends newSuspect events upon successful ping response.
           */
          private static final DiscoveryPingResponseCallback cb = new DiscoveryPingResponseCallback();
      
          private static final String LOG4J_CATEGORY = "discover";
      

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              gschreiner Guenther Schreiner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: