fix logging of UI server auto-stop, fix indentation in test
Signed-off-by: Tamás Fenyvesi <tamas.fenyvesi@doknet.hu>
This commit is contained in:
		
							parent
							
								
									88ef784b7c
								
							
						
					
					
						commit
						ef7c21c204
					
				| @ -194,8 +194,9 @@ public class VertxUIServer extends AbstractVerticle implements UIServer { | |||||||
|         VertxUIServer.autoStopThread = new Thread(() -> { |         VertxUIServer.autoStopThread = new Thread(() -> { | ||||||
|             try { |             try { | ||||||
|                 currentThread.join(); |                 currentThread.join(); | ||||||
|                 log.info("Deeplearning4j UI server is auto-stopping."); |  | ||||||
|                 if (VertxUIServer.instance != null && !VertxUIServer.instance.isStopped()) { |                 if (VertxUIServer.instance != null && !VertxUIServer.instance.isStopped()) { | ||||||
|  |                     log.info("Deeplearning4j UI server is auto-stopping after thread (name: {}) died.", | ||||||
|  |                             currentThread.getName()); | ||||||
|                     instance.stop(); |                     instance.stop(); | ||||||
|                 } |                 } | ||||||
|             } catch (InterruptedException e) { |             } catch (InterruptedException e) { | ||||||
|  | |||||||
| @ -40,7 +40,7 @@ import static org.junit.Assert.*; | |||||||
| public class TestVertxUIManual extends BaseDL4JTest { | public class TestVertxUIManual extends BaseDL4JTest { | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|         public long getTimeoutMilliseconds() { |     public long getTimeoutMilliseconds() { | ||||||
|         return 3600_000L; |         return 3600_000L; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user