mulesoft-consulting / json-logger

Drop-in replacement for default Mule Logger that outputs a JSON structure based on a predefined JSON schema
MIT License
68 stars 212 forks source link

error: Operation 'loggerScope' has a InputStream type output but doesn't specify a default mime type. Please annotate it with @MediaType #34

Open rmandyam-ms opened 2 years ago

rmandyam-ms commented 2 years ago

Getting this when trying the run the deploy-to-exchange.sh [WARNING] diagnostic: /Users/out.txt/Documents/FPL/json-logger-mule-4.x/json-logger/src/main/java/org/mule/extension/jsonlogger/internal/JsonloggerExtension.java:23: warning: The extension [JSON Logger] exports the following internal packages: public class JsonloggerExtension { ^ -> [org.mule.extension.jsonlogger.internal.destinations]: because of these classes:

kimbert commented 2 years ago

We are trying to log the output from a database Select processor using stringifyNonJSON(payload)

The output of a Select is a stream containing an array of objects. When the result set is a single integer, the output of our logger is org.mule.runtime.core.internal.streaming.object.ManagedCursorIteratorProvider@309d791.

Should we be using some other function, or is this a missing feature in stringifyNonJSON() ?