Fix class used to initialize logger in Watcher
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.
*/
package org.elasticsearch.xpack.watcher.execution;
-import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.message.ParameterizedMessage;
import org.apache.logging.log4j.util.Supplier;
import org.elasticsearch.xpack.core.watcher.trigger.TriggerEvent;
@@ -16,7 +16,7 @@ import java.util.function.Consumer;
import static java.util.stream.StreamSupport.stream;
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;
public AsyncTriggerEventConsumer(ExecutionService executionService) {
