debug minimal docker setup
This commit is contained in:
		
							parent
							
								
									c520777585
								
							
						
					
					
						commit
						4d55104a0b
					
				
					 2 changed files with 17 additions and 12 deletions
				
			
		|  | @ -76,22 +76,26 @@ public class WebserviceInit implements ApplicationListener<ApplicationReadyEvent | ||||||
|         SEBServerInit.INIT_LOGGER.info("----> "); |         SEBServerInit.INIT_LOGGER.info("----> "); | ||||||
|         SEBServerInit.INIT_LOGGER.info("----> Register Webservice: {}", this.webserviceInfo.getWebserviceUUID()); |         SEBServerInit.INIT_LOGGER.info("----> Register Webservice: {}", this.webserviceInfo.getWebserviceUUID()); | ||||||
| 
 | 
 | ||||||
|         if (this.webserviceInfoDAO.isInitialized()) { |         try { | ||||||
|             this.registerWebservice(); |             if (this.webserviceInfoDAO.isInitialized()) { | ||||||
|  |                 this.registerWebservice(); | ||||||
| 
 | 
 | ||||||
|             // Apply migration if needed and possible |                 // Apply migration if needed and possible | ||||||
|             SEBServerInit.INIT_LOGGER.info("----> "); |                 SEBServerInit.INIT_LOGGER.info("----> "); | ||||||
|             this.sebServerMigrationStrategy.applyMigration(); |                 this.sebServerMigrationStrategy.applyMigration(); | ||||||
|             SEBServerInit.INIT_LOGGER.info("----> "); |                 SEBServerInit.INIT_LOGGER.info("----> "); | ||||||
| 
 | 
 | ||||||
|         } else { |             } else { | ||||||
| 
 | 
 | ||||||
|             // Apply migration if needed and possible |                 // Apply migration if needed and possible | ||||||
|             SEBServerInit.INIT_LOGGER.info("----> "); |                 SEBServerInit.INIT_LOGGER.info("----> "); | ||||||
|             this.sebServerMigrationStrategy.applyMigration(); |                 this.sebServerMigrationStrategy.applyMigration(); | ||||||
|             SEBServerInit.INIT_LOGGER.info("----> "); |                 SEBServerInit.INIT_LOGGER.info("----> "); | ||||||
| 
 | 
 | ||||||
|             this.registerWebservice(); |                 this.registerWebservice(); | ||||||
|  |             } | ||||||
|  |         } catch (final Exception e) { | ||||||
|  |             SEBServerInit.INIT_LOGGER.error("Failed to apply data import and migration --> ", e); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         SEBServerInit.INIT_LOGGER.info("----> "); |         SEBServerInit.INIT_LOGGER.info("----> "); | ||||||
|  |  | ||||||
|  | @ -57,6 +57,7 @@ public class WebserviceInfoDAOImpl implements WebserviceInfoDAO { | ||||||
|                     .execute(); |                     .execute(); | ||||||
|             return true; |             return true; | ||||||
|         } catch (final Exception e) { |         } catch (final Exception e) { | ||||||
|  |             log.warn("DB Context not initialized: ", e); | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 anhefti
						anhefti