Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showing the profile in the first line of log after start running Quarkus #32231

Open
ma-sharifi opened this issue Mar 29, 2023 · 0 comments
Open
Labels
area/housekeeping Issue type for generalized tasks not related to bugs or enhancements

Comments

@ma-sharifi
Copy link

ma-sharifi commented Mar 29, 2023

Description

I was wondering why we have to wait to see which profile is loaded in log.
The problem is:
In the Spring Boot application, I can even see my profile, on the first line of the log.
But in Quarkus, After loading everything, and ruining TestContainers, and Flyway scripts,... eventually, I can see my profile.

@ApplicationScoped
class Starter
{
  @Inject
  Logger LOGGER;

  void onStart(@Observes StartupEvent ev)
  {
    LOGGER.info("#The application is starting... ." + " Profile is: " + ProfileManager.getActiveProfile());
  }
  void onStop(@Observes ShutdownEvent ev)
  {
    LOGGER.info("#The application is stopping...");
  }
}

I used the above code to see, which profile is selected.
Quarkus log it after above code:
2023-03-29 16:29:34,715 INFO [io.quarkus] Profile test activated.

Implementation ideas

I expected there was a way can see which profile is selected in the first lines of the application log.

@ma-sharifi ma-sharifi added the area/housekeeping Issue type for generalized tasks not related to bugs or enhancements label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/housekeeping Issue type for generalized tasks not related to bugs or enhancements
Projects
None yet
Development

No branches or pull requests

1 participant