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

Remove obsolete methods from Logger that are deprecated since 10+ years #1020

Closed
wants to merge 1 commit into from

Conversation

bertm
Copy link
Contributor

@bertm bertm commented Nov 30, 2024

LogLevel enum based log levels are preferred over int-based priorities since 2010. Remove the obsolete int-based methods, the int priority constants and their int-to-enum conversion method.

LogLevel enum based log levels are preferred over int-based priorities
since 2010. Remove the obsolete int-based methods, the int priority
constants and their int-to-enum conversion method.
public static final int NORMAL = LogLevel.NORMAL.ordinal();

@Deprecated
public static final int MINOR = LogLevel.MINOR.ordinal();
Copy link
Contributor

@ArneBab ArneBab Dec 1, 2024

Choose a reason for hiding this comment

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

These are used from plugins (I see them in Thingamablog, Spider, and SCGIPublisher). I do not think we can get rid of them earlier than the next decade, except if we manage to take up maintenance for all our plugins again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, we're getting to a point where fred can evolve less and less because of unmaintained plugin compatibility.

Until we have a solution for that (like introducing a shim that provides compatibility for legacy plugins), we'll have to live with that. Closing this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, that’s a reality we have to live with.

The steps to move forward would be to first create an actual defined plugin API (which does not expose the full node) and when there are plugins using it and it’s proven itself to be sufficiently powerful, analyze all known plugins that do not use the new API which parts of fred they use. Then annotate all those places as @Published(plugins=["...", "..."]) or such to track when plugin updates enable removing those limitations.

I’m pretty sure Bombe already has ideas for such an API.

@bertm
Copy link
Contributor Author

bertm commented Dec 1, 2024

Plugins need to be updated first. Unless we introduce a legacy shim mechanism, this will never get to a state where it can be merged.

@bertm bertm closed this Dec 1, 2024
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.

2 participants