hms-networks / flexy-cumulocity-connector

A connector-based solution to Cumulocity for linking Ewon devices using a direct data path with a Flexy Java application.
Apache License 2.0
3 stars 2 forks source link

[BUG] Debug logging causes performance degradation with large payloads #68

Open alexjhawk opened 8 months ago

alexjhawk commented 8 months ago

Do I have the latest version of the Ewon firmware?

Do I have the latest version of the application?

Do I have a custom or modified version of the application?

Ewon Firmware Version

14.8s0

Application Version

1.4.1

Network Connection Type

Ethernet

Current Behavior

Changing the LogLevel to 6 causes the body of payloads sent to be output to the Ewon's realtime logs. This has performance implications where a large amount of data is contained in the payload. This is especially notable when that condition persists for consecutive data polls and the realtime logging becomes overwhelmed.

Expected Behavior

It is expected that debug output does not have a drastic impact on the connector performance under reasonable or normal operating circumstances.

Steps to Reproduce

  1. Launch and run the connector using log level 6
  2. Process a large amount of data through the historical data queue to a payload or payloads
  3. Connector logs the request/response body, causing performance implications

Additional Information

First Observed by Customer Confirmed by @alexjhawk Reported by @alexjhawk

Code of Conduct

alexjhawk commented 8 months ago

Edit: There are no custom modifications to this connector. The request template only allows you to pick 'Yes'.