juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] stain closed pull request #5: [JUNEAU-79] org.apache.juneau.microservice.RestMicroservice.stop()
Date Thu, 01 Jan 1970 00:00:00 GMT
stain closed pull request #5: [JUNEAU-79] org.apache.juneau.microservice.RestMicroservice.stop()
URL: https://github.com/apache/juneau/pull/5
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/juneau-microservice/juneau-microservice-server/src/main/java/org/apache/juneau/microservice/RestMicroservice.java
b/juneau-microservice/juneau-microservice-server/src/main/java/org/apache/juneau/microservice/RestMicroservice.java
index b8c849ba..07992b88 100755
--- a/juneau-microservice/juneau-microservice-server/src/main/java/org/apache/juneau/microservice/RestMicroservice.java
+++ b/juneau-microservice/juneau-microservice-server/src/main/java/org/apache/juneau/microservice/RestMicroservice.java
@@ -139,11 +139,11 @@ public RestMicroservice join() throws Exception {
 
 	@Override /* Microservice */
 	public RestMicroservice stop() {
+		final Logger logger = getLogger();
 		final MessageBundle mb2 = mb;
 		Thread t = new Thread() {
 			@Override /* Thread */
 			public void run() {
-				Logger logger = getLogger();
 				try {
 					if (server.isStopping() || server.isStopped())
 						return;
@@ -161,7 +161,7 @@ public void run() {
 		try {
 			t.join();
 		} catch (InterruptedException e) {
-			e.printStackTrace();
+			logger.log(Level.WARNING, e.getLocalizedMessage(), e);
 		}
 		super.stop();
 		return this;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message