commit 168fe9de6d4a9e8cc9a648ab7af4f4d717f46d33 Author: Thomas Draebing Date: Wed Aug 12 15:37:17 2020 +0200 Register graceful shutdown for list logging level command Change-Id: I987e8462caede27cd4a3ff8dc816ad7c5d3f73c6 diff --git a/java/com/google/gerrit/sshd/commands/ListLoggingLevelCommand.java b/java/com/google/gerrit/sshd/commands/ListLoggingLevelCommand.java index c8b8fa1..1a7be32 100644 --- a/java/com/google/gerrit/sshd/commands/ListLoggingLevelCommand.java +++ b/java/com/google/gerrit/sshd/commands/ListLoggingLevelCommand.java @@ -40,6 +40,7 @@ public class ListLoggingLevelCommand extends SshCommand { @SuppressWarnings("unchecked") @Override protected void run() { + enableGracefulStop(); Map logs = new TreeMap<>(); for (Enumeration logger = LogManager.getCurrentLoggers(); logger.hasMoreElements(); ) { Logger log = logger.nextElement();