wso2 / product-micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
204 stars 221 forks source link

[Improvement]: Change the Log Level of Error Messages When Removing Carbon Applications with File Connector #3610

Open rizmir22 opened 2 months ago

rizmir22 commented 2 months ago

Description

Hi Team,

When deploying the file connector via multiple Carbon applications, the following error is observed when undeploying one of the Carbon applications that contains the file connector:


[2024-09-05 15:05:03,082] ERROR {SynapseAppDeployer} - Error occured while deleting the synapse library import
[2024-09-05 15:05:03,082] ERROR {LibraryArtifactDeployer} - Artifact representing the filename /Users/sajithmadhusanka/Documents/CS/SETUP/APIM4.1.0/wso2mi-4.1.0/tmp/carbonapps/-1234/1725528812990file_connector_5CompositeExporter_1.0.0-SNAPSHOT.car/file-connector_4.0.30/file-connector-4.0.30.zip is not deployed on Synapse

This error occurs when removing a Carbon application that contains the file connector but was not deployed as a file connector library (as only one file connector library is deployed even if included in multiple Carbon applications).

The error messages indicate that the file connector library was not undeployed because it was not deployed as a library in the specific Carbon application. Therefore, there is no need for concern regarding these error messages.

Hence, the log level for these messages should not be set to ERROR since no action is required to resolve them. It should be changed to either WARN or DEBUG.

Regards, Rizmeer

Describe your problem(s)

No response

Describe your solution(s)

Need to change the specific log level to WARN

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response