You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Andreas Ländle (JIRA)" <ji...@apache.org> on 2011/01/21 11:35:45 UTC

[jira] Created: (AMQ-3148) LoggingBrokerPlugin addConnection(..) log output is meaningless

LoggingBrokerPlugin addConnection(..) log output is meaningless
---------------------------------------------------------------

                 Key: AMQ-3148
                 URL: https://issues.apache.org/jira/browse/AMQ-3148
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 5.4.2
            Reporter: Andreas Ländle


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);
    }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQ-3148) LoggingBrokerPlugin addConnection(..) log output is meaningless

Posted by "Andreas Ländle (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Ländle updated AMQ-3148:
--------------------------------

    Attachment: LoggingBrokerPlugin.patch

> LoggingBrokerPlugin addConnection(..) log output is meaningless
> ---------------------------------------------------------------
>
>                 Key: AMQ-3148
>                 URL: https://issues.apache.org/jira/browse/AMQ-3148
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.4.2
>            Reporter: Andreas Ländle
>         Attachments: LoggingBrokerPlugin.patch
>
>
> 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);
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQ-3148) LoggingBrokerPlugin addConnection(..) log output is meaningless

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-3148.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.5.0
         Assignee: Gary Tully

patch applied with thanks in r1062756

URL: http://svn.apache.org/viewvc?rev=1062756&view=rev

> LoggingBrokerPlugin addConnection(..) log output is meaningless
> ---------------------------------------------------------------
>
>                 Key: AMQ-3148
>                 URL: https://issues.apache.org/jira/browse/AMQ-3148
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.4.2
>            Reporter: Andreas Ländle
>            Assignee: Gary Tully
>             Fix For: 5.5.0
>
>         Attachments: LoggingBrokerPlugin.patch
>
>
> 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);
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.