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

Improve logging for EventIpcManagerDefaultImpl

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 20.0.0, Meridian-2016.1.5
    • Fix Version/s: 20.0.1, Meridian-2017.1.0
    • Component/s: Eventd, Logging
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Sometimes, it is important to know which events are being received by certain OpenNMS daemons, and also which events are being sent by the OpenNMS daemons.

      Having the log level at DEBUG for the EventIpcManagerDefaultImpl class can give you that information without the need of enabling DEBUG for several daemons.

      Unfortunately, the current implementation doesn't show enough information when "sending" an event, and shows too much information (and hard to consume) when "receiving" an event.

      It would be nice to homologate the logging messages by re-implementing the "toString" method for all the "Event" classes, in order to show all the fields, ignoring the null ones and the empty collections.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: