[fix][proxy] Fix logging in shutdown when proxy shutdown
@@ -36,6 +36,7 @@ import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import lombok.Getter;
+import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.core.util.datetime.FixedDateFormat;
import org.apache.pulsar.broker.PulsarServerException;
import org.apache.pulsar.broker.ServiceConfiguration;
@@ -241,6 +242,8 @@ public class ProxyServiceStarter {
}
} catch (Exception e) {
log.warn("server couldn't stop gracefully {}", e.getMessage(), e);
+ } finally {
+ LogManager.shutdown();
}
}
