From 1ebdac2cd6a02c4de76802a0fbf6bd1c42636067 Mon Sep 17 00:00:00 2001 From: litao Date: Wed, 1 Dec 2021 15:18:21 +0800 Subject: [PATCH] HDFS-16361. Fix log format for QueryCommand (#3732). Contributed by tomscut. --- .../hadoop/hdfs/server/diskbalancer/command/QueryCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/command/QueryCommand.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/command/QueryCommand.java index 6a89e248f59..f5d4cfacd82 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/command/QueryCommand.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/command/QueryCommand.java @@ -84,7 +84,7 @@ public class QueryCommand extends Command { System.out.printf("%s", workStatus.currentStateString()); } } catch (DiskBalancerException ex) { - LOG.error("Query plan failed. ex: {}", ex); + LOG.error("Query plan failed.", ex); throw ex; } }