snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Print quarkus profile info before exec custom startup methods #131

Closed snowdrop-bot closed 4 years ago

snowdrop-bot commented 4 years ago

Description In our quarkus service there is a method called at startup which connects to our database. We use different databases depending on the quarkus profile. When i start quarkus and the db is somehow not reachable, then there is no information about the profile in the log, because quarkus will stop directly after the startup method, so i have no chance to see if it is simply the wrong profile or a "real" connection problem.

Can you please change quarkus that way that the profile (and maybe other static information) will be printed before calling any custom startup methods?

__  ____  __  _____   ___  __ ____  ______
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2020-07-10 17:33:24,075 INFO  [io.agr.pool] (main) Datasource '<default>': Initial size smaller than min. Connections will be created when necessary
2020-07-10 17:33:27,111 WARN  [io.agr.pool] (Agroal_6655648741) Datasource '<default>': Der Verbindungsversuch schlug fehl.
2020-07-10 17:33:27,116 WARN  [org.hib.eng.jdb.spi.SqlExceptionHelper] (main) SQL Error: 0, SQLState: 08001
2020-07-10 17:33:27,118 ERROR [org.hib.eng.jdb.spi.SqlExceptionHelper] (main) Der Verbindungsversuch schlug fehl.
2020-07-10 17:33:27,135 ERROR [io.qua.application] (main) Failed to start application: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory
...

https://github.com/quarkusio/quarkus/issues/10644


$upstream:10644$