wso2 / product-ei

An open source, a high-performance hybrid integration platform that allows developers quick integration with any application, data, or system.
https://wso2.com/integration/
Apache License 2.0
373 stars 280 forks source link

JMSPollingConsumer debug info should all include inboud enpoint name. #4702

Open jpbelangerfromquebec opened 4 years ago

jpbelangerfromquebec commented 4 years ago

Description: Activating debugging level to DEBUG does not log the inbound enpoint name, which make things difficult to trace. Please add that information to all debug logs.

Typical message:

Oct 8, 2019 @ 11:12:25.981 host.name:XXXXXXX source:/var/log/wso2ei/integrator/wso2carbon.log @timestamp:Oct 8, 2019 @ 11:12:25.981 client:wso2 offset:1,263,329 beat.name:XXXXXXX beat.hostname:XXXXXXX beat.version:6.8.3 tags:beats_input_codec_plain_applied @version:1 message:{org.wso2.carbon.inbound.endpoint.protocol.jms.JMSPollingConsumer} - Suspending polling as the pollingSuspensionLimit of 2 reached. Polling will be re-started after 120000 milliseconds log.file.path:/var/log/wso2ei/integrator/wso2carbon.log level:INFO _id:y47tq20BmFOqqeG3zpIq _type:_doc _index:rq-wso2-2019.10.08 _score: -

Suggested Labels:

Suggested Assignees:

Affected Product Version: WSO2 Integrator 6.4.0 (Carbon-mediation)

OS, DB, other environment details and versions:

Windows 7, Oracle.

Steps to reproduce:

  1. Activate Debug on JMSPollingConsumer class.
  2. Look at debug info.

Related Issues:

GDLMadushanka commented 4 years ago

Name information should be added to other artefacts as well. (Ex: API, Proxy etc... )

v-scottbechtel commented 1 year ago

+1

Looks like this didn't make it into EI 6.6.0. [1] It's also not in Master yet [2].

[1] https://github.com/wso2/carbon-mediation/blob/carbon-mediation-4.5.0/components/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/JMSPollingConsumer.java

[2] https://github.com/wso2/carbon-mediation/blob/master/components/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/JMSPollingConsumer.java