#3282 refactor: Avoid printing raw tracebacks to keep stderr clean
Pull request opened by
edgarrmondragon
SSIA.
## Summary by Sourcery
Introduce a custom excepthook in SingerCommand to suppress raw tracebacks and keep stderr clean, configure it during command invocation, and remove traceback details from stream sync logs.
Enhancements:
• Add a custom excepthook method to SingerCommand that logs exception messages via logger.error and delegates KeyboardInterrupt to the default handler
• Set sys.excepthook to the custom excepthook in SingerCommand.invoke to capture unhandled exceptions
• Remove exc_info=True from the sync error log in streams to avoid printing full tracebacks
Tests:
• Add tests for SingerCommand.excepthook to verify error message logging and proper handling of KeyboardInterrupt
meltano/sdk