-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Drop deprecationLogger from AbstractComponent #34859
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
Drop deprecationLogger from AbstractComponent #34859
Conversation
Drops the `deprecationLogger` from `AbstractComponent`, moving it to places where we need it. This saves us from building a bunch of `DeprecationLogger`s that we don't need. Relates to elastic#34488
|
Pinging @elastic/es-core-infra |
jaymode
left a comment
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.
I left a nit about casing. LGTM
| * </dl> | ||
| */ | ||
| class S3Repository extends BlobStoreRepository { | ||
| private static final Logger logger = LogManager.getLogger(S3Repository.class); |
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.
this is a nit but typically static finals should be all uppercase (LOGGER and DEPRECATION_LOGGER)
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.
I tend to stick to the google style for things like this. These things aren't constants so I use the normal case.
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.
It would be great to have a standard across the team for this; I've been asked to use all uppercase before so I adopted it, but I get the point of the google style too. Anyway, this shouldn't block your change
rjernst
left a comment
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.
LGTM
Drops the `deprecationLogger` from `AbstractComponent`, moving it to places where we need it. This saves us from building a bunch of `DeprecationLogger`s that we don't need. Relates to #34488
Drops the `deprecationLogger` from `AbstractComponent`, moving it to places where we need it. This saves us from building a bunch of `DeprecationLogger`s that we don't need. Relates to #34488
Drops the
deprecationLoggerfromAbstractComponent, moving it toplaces where we need it. This saves us from building a bunch of
DeprecationLoggers that we don't need.Relates to #34488