Tests: Fix logger initialization to include hostname in timewarped watcher
This cleans up logging, when starting several elasticsearch instances,
as otherwise you cannot see, which node emits this log message.
Original commit: elastic/x-pack-elasticsearch@63d0ffba313f118b636a75631aa5e4fde25fb4b3
@@ -26,10 +26,9 @@ import java.util.stream.Stream;
public class TimeWarpedWatcher extends Watcher {
- private static final Logger logger = Loggers.getLogger(TimeWarpedWatcher.class);
-
public TimeWarpedWatcher(Settings settings) {
super(settings);
+ Logger logger = Loggers.getLogger(TimeWarpedWatcher.class, settings);
logger.info("using time warped watchers plugin");
}
