event-catalog / generator-asyncapi

AsyncAPI generator for EventCatalog
https://www.eventcatalog.dev/docs/development/integrations/async-api/intro
Other
8 stars 3 forks source link

No debug log on error #11

Closed KatzeMitHut closed 1 week ago

KatzeMitHut commented 1 week ago

I tried to generate files from a valid AsyncAPI document regarding to AsyncAPI Studio and got this error. It worked with a different document, but with this one I got:

Processing 1 AsyncAPI files... Processing /home/my-catalog/asyncapi-files/asyncapi.yaml Failed to parse AsyncAPI file Run with debug option in the generator to see diagnostics

To get the debug logs I tried

DEBUG=* npm run generate

and

npm run generate --debug

But I always got the same output shown above.

boyney123 commented 1 week ago

Thanks for raising an issue, I will take a look

boyney123 commented 1 week ago

Thanks @KatzeMitHut , should be fixed now.

You can find docs here https://www.eventcatalog.dev/docs/development/plugins/async-api/api#debug

It was originally a debug flag on the generator itself, but I like idea of the CLI flag too, so I added that :).

Thanks for raising the issue.

KatzeMitHut commented 1 week ago

Thanks for addressing this so quickly :)