Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error logging if a plugin refuses to load #3276

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

MinchinWeb
Copy link
Contributor

Further to #3257, this will print the proper line number if a plugin fails to load, and will print the stacktrace, if pelican is run with --debug.

Useful when you're first trying to get a plugin to load, or have issue when Pelican first imports/loads the plugin.

pelican/__init__.py Outdated Show resolved Hide resolved
pelican/log.py Outdated Show resolved Hide resolved
Copy link
Member

@avaris avaris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@justinmayer justinmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks to @MinchinWeb for the enhancement and to @avaris for reviewing 💯

@justinmayer justinmayer merged commit 8a01cb1 into getpelican:master Jan 29, 2024
15 checks passed
@MinchinWeb MinchinWeb deleted the plugin-error-loading branch January 29, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants