From b698237cbd7b907e785dd5ddc75c1beeae23c08c Mon Sep 17 00:00:00 2001 From: Alexander Senn Date: Thu, 17 Dec 2020 14:13:32 -0500 Subject: [PATCH] fix logger statement previously missed --- .../containerjfr/commands/internal/CommandRegistryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/redhat/rhjmc/containerjfr/commands/internal/CommandRegistryImpl.java b/src/main/java/com/redhat/rhjmc/containerjfr/commands/internal/CommandRegistryImpl.java index 388eef12bd..0520fd0de0 100644 --- a/src/main/java/com/redhat/rhjmc/containerjfr/commands/internal/CommandRegistryImpl.java +++ b/src/main/java/com/redhat/rhjmc/containerjfr/commands/internal/CommandRegistryImpl.java @@ -104,7 +104,7 @@ public Output execute(String commandName, String[] args) { .getName() .equals(annotation.annotationType().getName())); if (deprecated) { - logger.warn(String.format("Command \"%s\" is deprecated", commandName)); + logger.warn("Command \"{}\" is deprecated", commandName); } return c.execute(args); } catch (Exception e) {