OpenFn/apollo

code_generator: Logger calls for an unknown attribute 'generate'.

SatyamMattoo opened this issue · 1 comments

The current code generation service uses logger.generate to create logs. On openfn apollo code_generator tmp/data.json -o tmp/output.json it returns an error message:

Screenshot 2024-06-10 181421

A simple fix would be to use logger.info or logger.debug to avoid this error and print logs successfully.

That's a typo or find/replace fail something - logger.generate isn't a real log function. Looks like I last touched it a month ago 😊

PRs always welcome!