Fix class used to initialize logger in Watcher (#46467)

This class has been using a logger configured for a different class for
quite a while. While the circumstance in which it logs is rare, it
should still use the correct logger.
This commit is contained in:
Gordon Brown 2019-09-10 12:41:36 -06:00 committed by GitHub
parent 10da998dfa
commit 7a2878b29b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@
*/ */
package org.elasticsearch.xpack.watcher.execution; package org.elasticsearch.xpack.watcher.execution;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.message.ParameterizedMessage; import org.apache.logging.log4j.message.ParameterizedMessage;
import org.apache.logging.log4j.util.Supplier; import org.apache.logging.log4j.util.Supplier;
import org.elasticsearch.xpack.core.watcher.trigger.TriggerEvent; import org.elasticsearch.xpack.core.watcher.trigger.TriggerEvent;
@ -16,7 +16,7 @@ import java.util.function.Consumer;
import static java.util.stream.StreamSupport.stream; import static java.util.stream.StreamSupport.stream;
public class AsyncTriggerEventConsumer implements Consumer<Iterable<TriggerEvent>> { public class AsyncTriggerEventConsumer implements Consumer<Iterable<TriggerEvent>> {
private static final Logger logger = LogManager.getLogger(SyncTriggerEventConsumer.class); private static final Logger logger = LogManager.getLogger(AsyncTriggerEventConsumer.class);
private final ExecutionService executionService; private final ExecutionService executionService;
public AsyncTriggerEventConsumer(ExecutionService executionService) { public AsyncTriggerEventConsumer(ExecutionService executionService) {