Skip to content

Commit

Permalink
HHH-17659 Review default logging verbosity of BeansMessageLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne authored and beikov committed Jan 22, 2024
1 parent 0900622 commit 705e70f
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

import org.hibernate.internal.log.SubSystemLogging;
import org.hibernate.resource.beans.container.spi.BeanContainer;
import org.hibernate.resource.beans.spi.ManagedBeanRegistry;

import org.jboss.logging.Logger;
import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;
import org.jboss.logging.annotations.ValidIdRange;

import static org.jboss.logging.Logger.Level.DEBUG;
import static org.jboss.logging.Logger.Level.INFO;
import static org.jboss.logging.Logger.Level.WARN;

Expand All @@ -31,7 +31,6 @@
public interface BeansMessageLogger {
String LOGGER_NAME = SubSystemLogging.BASE + ".beans";

Logger BEANS_LOGGER = Logger.getLogger( LOGGER_NAME );
BeansMessageLogger BEANS_MSG_LOGGER = Logger.getMessageLogger( BeansMessageLogger.class, LOGGER_NAME );

@LogMessage( level = WARN )
Expand All @@ -51,17 +50,10 @@ public interface BeansMessageLogger {
)
void noBeanManagerButCdiAvailable();

@LogMessage( level = INFO )
@Message(
id = 10005003,
value = "Stopping ManagedBeanRegistry : %s"
)
void stoppingManagedBeanRegistry(ManagedBeanRegistry registry);

@LogMessage( level = INFO )
@LogMessage( level = DEBUG )
@Message(
id = 10005004,
value = "Stopping BeanContainer : %s"
value = "Stopping BeanContainer: %s"
)
void stoppingBeanContainer(BeanContainer beanContainer);
}

0 comments on commit 705e70f

Please sign in to comment.