tryretool / retoolrpc

MIT License
6 stars 5 forks source link

[javascript] [bug] When logging a function execution, the context object is printed as [object Object] #31

Open VictoriaHunsaker opened 6 months ago

VictoriaHunsaker commented 6 months ago

Example as seen in my own logs:

Executing function: healthCheck, context: [object Object]

I think all that needs to be done is modify this line to something like

this._logger.info(`Executing function: ${functionName}, context: ${JSON.stringify(context)}`)

I'd fix it myself, but I can't push a change to a branch in order to open a PR.

Thanks!