Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3148

LoggingBrokerPlugin addConnection(..) log output is meaningless

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.4.2
    • 5.5.0
    • Broker
    • None
    • Patch Available

    Description

      At the moment the log output is as follows:
      " INFO | Adding Connection : org.apache.activemq.broker.ConnectionContext@e75be38"

      As far as I can judge this, the problem is that the ConnectionContext and not the ConnectionInfo is displayed.

      public void addConnection(ConnectionContext context, ConnectionInfo info) throws Exception {
      if (isLogAll() || isLogConnectionEvents())

      { LOG.info("Adding Connection : " + context); // <-- here }

      super.addConnection(context, info);
      }

      Attachments

        1. LoggingBrokerPlugin.patch
          0.5 kB
          Andreas Ländle

        Activity

          People

            gtully Gary Tully
            alsoloplan Andreas Ländle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: