mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-30 21:40:12 +00:00 
			
		
		
		
	Print solr url on start
This is useful info to see which url has been selected, same as db connection.
This commit is contained in:
		| @@ -7,7 +7,8 @@ case class Banner( | ||||
|     jdbcUrl: LenientUri, | ||||
|     configFile: Option[String], | ||||
|     appId: Ident, | ||||
|     baseUrl: LenientUri | ||||
|     baseUrl: LenientUri, | ||||
|     ftsUrl: Option[LenientUri] | ||||
| ) { | ||||
|  | ||||
|   private val banner = | ||||
| @@ -27,6 +28,7 @@ case class Banner( | ||||
|       s"Id:       ${appId.id}", | ||||
|       s"Base-Url: ${baseUrl.asString}", | ||||
|       s"Database: ${jdbcUrl.asString}", | ||||
|       s"Fts:      ${ftsUrl.map(_.asString).getOrElse("-")}", | ||||
|       s"Config:   ${configFile.getOrElse("")}", | ||||
|       "" | ||||
|     ) | ||||
|   | ||||
| @@ -46,7 +46,8 @@ object Main extends IOApp { | ||||
|       cfg.jdbc.url, | ||||
|       Option(System.getProperty("config.file")), | ||||
|       cfg.appId, | ||||
|       cfg.baseUrl | ||||
|       cfg.baseUrl, | ||||
|       Some(cfg.fullTextSearch.solr.url).filter(_ => cfg.fullTextSearch.enabled) | ||||
|     ) | ||||
|     logger.info(s"\n${banner.render("***>")}") | ||||
|     val pools = for { | ||||
|   | ||||
| @@ -46,7 +46,8 @@ object Main extends IOApp { | ||||
|       cfg.backend.jdbc.url, | ||||
|       Option(System.getProperty("config.file")), | ||||
|       cfg.appId, | ||||
|       cfg.baseUrl | ||||
|       cfg.baseUrl, | ||||
|       Some(cfg.fullTextSearch.solr.url).filter(_ => cfg.fullTextSearch.enabled) | ||||
|     ) | ||||
|     val pools = for { | ||||
|       cec <- connectEC | ||||
|   | ||||
		Reference in New Issue
	
	Block a user