Skip to content

Logging in transform script #7

Description

@EliRibble

I don't know of any reasonable way to run the transform script with a debugger, and adding one is likely to be a complex affair. I've already got a script which is 180 lines for mapping events from Forgejo to Openclaw. I can add a sort of logging by appending to a string array in the result returned through event.payload, but that's pretty hacky to say the least. It'd be better to add a working console.log to the global namespace, or barring that, add a log property to the event passed into transform that can capture information from within the program to aid in debugging.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions