-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Remove DeprecationLogger from route objects #52278
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 DeprecationLogger from route objects #52278
Conversation
This commit removes the need for DeprecatedRoute and ReplacedRoute to have an instance of a DeprecationLogger. Instead the RestController now has a DeprecationLogger that will be used for all deprecated and replaced route messages. Relates elastic#51950
Pinging @elastic/es-core-infra (:Core/Infra/REST API) |
@@ -62,6 +62,7 @@ | |||
public class RestController implements HttpServerTransport.Dispatcher { | |||
|
|||
private static final Logger logger = LogManager.getLogger(RestController.class); | |||
private static final DeprecationLogger deprecationLogger = new DeprecationLogger(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.
+1, ship it.
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.
All those silly unnecessary deprecation logger instances gone, it fills me with so much joy. |
This commit removes the need for DeprecatedRoute and ReplacedRoute to have an instance of a DeprecationLogger. Instead the RestController now has a DeprecationLogger that will be used for all deprecated and replaced route messages. Relates elastic#51950
This commit removes the need for DeprecatedRoute and ReplacedRoute to
have an instance of a DeprecationLogger. Instead the RestController now
has a DeprecationLogger that will be used for all deprecated and
replaced route messages.
Relates #51950