Skip to content

Commit a96a95c

Browse files
committed
Improve log warning to describe the situation instead of the state.
1 parent 1174245 commit a96a95c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/AgentJarIndex.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,8 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
145145
int existingPrefixId = prefixTrie.apply(entryKey);
146146
if (-1 != existingPrefixId && prefixId != existingPrefixId) {
147147
log.warn(
148-
"entryKey '{}' has multiple prefixIds: overriding existing prefixId with '{}'.",
149-
entryKey,
150-
prefixId);
148+
"Detected duplicate content under this directory: '{}'. Ensure your content is under a distinct directory.",
149+
entryKey);
151150
}
152151
prefixTrie.put(entryKey, prefixId);
153152
if (entryKey.endsWith("*")) {

0 commit comments

Comments
 (0)