-
Notifications
You must be signed in to change notification settings - Fork 300
Remove rule logging and related code #2786
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
Conversation
| ################# | ||
| # Logging options | ||
| _LOGGING_SECTION = 'Logging' | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LukeC92 @dkillick @pelson @pp-mo @djkirkham
I know that this entire set of logging options is not deprecated, but while we are working towards Iris 2.0 and have also just implemented Python logging (with a view to further development), I really think we should take a long hard look at whether we still need this and should absolutely remove it if we don't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. import_logger can be removed long-term.
Definitely a separate PR, but I'd probably support it happening for 2.0 without a deprecation warning. We will have to document the breaking change though (and think about the impact for people who have a logging section in their config - would it now break if we removed it, or just be ignored silently?).
All questions to be answered outside of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LukeC92 Generally I am happy with these changes, and so are the tests, which is good. I would like a conversation with some members of the team about the remaining logging options, but if we follow all the rules that will not affect this PR, so I am happy to approve it.
Good job Luke.
|
My favourite kind of PR - one that makes the codebase smaller & tidier. |
|
I've started writing up the "What's New" for this pull request but I am not sure what the best way is to represent all of these changes. |
This is a continuation of @dkillick 's Pull Request #2697 . As well as removing rule logging config items and all rule logging functionality from
fileformats/rules.pyI also removedtest_verbose_fileformat_rules_logging.pywhich now seems redundant, and a referece to rule logs inpp.save_pairs_from_cube.Closes #2655