diff --git a/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/utils/regex/FileTask.java b/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/utils/regex/FileTask.java index 574bc41784..585345357d 100644 --- a/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/utils/regex/FileTask.java +++ b/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/utils/regex/FileTask.java @@ -301,7 +301,7 @@ public synchronized void dealWithWatchEntity(String originPattern) { private void dealWithWatchKey(org.apache.inlong.agent.plugin.task.logcollection.local.WatchEntity entity, WatchKey key) throws IOException { Path contextPath = entity.getPath(key); - LOGGER.info("Find creation events in path: " + contextPath.toAbsolutePath()); + LOGGER.info("Find creation events in path: {}", contextPath.toAbsolutePath()); for (WatchEvent watchEvent : key.pollEvents()) { Path child = resolvePathFromEvent(watchEvent, contextPath); if (child == null) {