Skip to content

Commit e1e9c43

Browse files
author
Ashutosh Gupta
committed
refactor error message
1 parent 34f5527 commit e1e9c43

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalDirAllocator.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,7 @@ public Path getLocalPathForWrite(String pathStr, long size,
457457
} catch (IOException e) {
458458
errorText = e.getMessage();
459459
diskException = e;
460-
if (LOG.isDebugEnabled()) {
461-
LOG.debug("DiskException caught for dir " + ctx.localDirs[dirNum].toString(), e);
462-
}
460+
LOG.debug("DiskException caught for dir {}", ctx.localDirs[dirNum], e);
463461
}
464462
if (returnPath != null) {
465463
ctx.getAndIncrDirNumLastAccessed(numDirsSearched);

pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
2020
<artifactId>hadoop-main</artifactId>
2121
<version>3.4.0-SNAPSHOT</version>
2222
<description>Apache Hadoop Main</description>
23-
<name>Apache Hadoop Main</name>
23+
<dependencies>
24+
<dependency>
25+
<groupId>org.slf4j</groupId>
26+
<artifactId>slf4j-api</artifactId>
27+
<version>2.0.0-alpha1</version>
28+
<scope>compile</scope>
29+
</dependency>
30+
</dependencies>
31+
<name>Apache Hadoop Main</name>
2432
<packaging>pom</packaging>
2533

2634
<dependencyManagement>

0 commit comments

Comments
 (0)