[FEATURE] Error logs for CustomTool
Describe the feature you'd like It'll be nice that when a CustomTool throws error, or if the code is incorrect, we can analyse the logs somewhere.
Currently, the CustomTool will simply be ignored and that results in wrong response by LLM.
Hmm, but I (or Claude did it for me) did exactly this. You can just return an error as the tools response and do console logging?! If you start Flowise with "$ pnpm start --PORT=3000 --LOG_LEVEL=debug --DEBUG=true" ?!
`} catch (error) { result.status = 'error'; result.message = 'Failed to set timer'; result.errors.push(error.message); console.error('Error setting timer:', error); if (error.response) { result.details.errorResponse = { status: error.response.status, data: error.response.data }; } }
console.log('Final result:', JSON.stringify(result, null, 2)); return JSON.stringify(result, null, 2);`