Skip to content

Commit f05b717

Browse files
committed
HSEARCH-5352 Clean up logger impls from misused imports
1 parent a8ace6b commit f05b717

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

Diff for: mapper/orm-outbox-polling/src/main/java/org/hibernate/search/mapper/orm/outboxpolling/logging/impl/ConfigurationLog.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
package org.hibernate.search.mapper.orm.outboxpolling.logging.impl;
66

7-
import static org.hibernate.search.engine.logging.impl.EngineLog.ID_OFFSET;
7+
import static org.hibernate.search.mapper.orm.outboxpolling.logging.impl.OutboxPollingLog.ID_OFFSET;
88
import static org.jboss.logging.Logger.Level.DEBUG;
99

1010
import java.lang.invoke.MethodHandles;
@@ -143,12 +143,12 @@ SearchException conflictingOutboxEventBackgroundProcessorAgentShardsForStaticSha
143143
SearchException unableToParseJdbcTypeCode(String value, String causeMessage, @Cause Exception cause);
144144

145145
@LogMessage(level = DEBUG)
146-
@Message(id = ID_OFFSET + 38,
146+
@Message(id = ID_OFFSET + 68,
147147
value = "Generated entity mapping for outbox events used in the outbox-polling coordination strategy: %1$s")
148148
void outboxEventGeneratedEntityMappingClassDetails(@FormatWith(ClassDetailsMappingsFormatter.class) ClassDetails mappings);
149149

150150
@LogMessage(level = DEBUG)
151-
@Message(id = ID_OFFSET + 39,
151+
@Message(id = ID_OFFSET + 69,
152152
value = "Generated entity mapping for agents used in the outbox-polling coordination strategy: %1$s")
153153
void agentGeneratedEntityMappingClassDetails(@FormatWith(ClassDetailsMappingsFormatter.class) ClassDetails mappings);
154154
}

Diff for: mapper/orm-outbox-polling/src/main/java/org/hibernate/search/mapper/orm/outboxpolling/logging/impl/OutboxPollingEventsLog.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import jakarta.persistence.PersistenceException;
2222

23-
import org.hibernate.search.engine.logging.impl.EngineLog;
2423
import org.hibernate.search.mapper.orm.outboxpolling.cluster.impl.Agent;
2524
import org.hibernate.search.mapper.orm.outboxpolling.cluster.impl.AgentReference;
2625
import org.hibernate.search.mapper.orm.outboxpolling.cluster.impl.AgentState;
@@ -109,12 +108,12 @@ void startingOutboxMassIndexerAgent(String name,
109108
@Message(id = ID_OFFSET + 22, value = "Stopping outbox mass indexer agent '%1$s'")
110109
void stoppingOutboxMassIndexerAgent(String name);
111110

112-
@Message(id = EngineLog.ID_OFFSET + 28, value = "Agent '%1$s': could not find the agent after starting a new transaction."
111+
@Message(id = ID_OFFSET + 28, value = "Agent '%1$s': could not find the agent after starting a new transaction."
113112
+ " The agent was present just a moment ago."
114113
+ " Either this problem is a rare occurrence, or the pulse expiration delay is too short.")
115114
SearchException agentRegistrationIneffective(AgentReference agentReference);
116115

117-
@Message(id = EngineLog.ID_OFFSET + 29, value = "Nonblocking operation submitter is not supported.")
116+
@Message(id = ID_OFFSET + 29, value = "Nonblocking operation submitter is not supported.")
118117
SearchException nonblockingOperationSubmitterNotSupported();
119118

120119
@LogMessage(level = DEBUG)

Diff for: mapper/orm-outbox-polling/src/main/java/org/hibernate/search/mapper/orm/outboxpolling/logging/impl/OutboxPollingLog.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public interface OutboxPollingLog extends ConfigurationLog, DeprecationLog, Outb
3030
* here to the next value.
3131
*/
3232
@LogMessage(level = TRACE)
33-
@Message(id = ID_OFFSET + 68, value = "")
33+
@Message(id = ID_OFFSET + 70, value = "")
3434
void nextLoggerIdForConvenience();
3535
}

Diff for: mapper/orm/src/main/java/org/hibernate/search/mapper/orm/logging/impl/OrmMiscLog.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.hibernate.ScrollMode;
1717
import org.hibernate.SessionFactory;
1818
import org.hibernate.search.mapper.orm.search.loading.EntityLoadingCacheLookupStrategy;
19-
import org.hibernate.search.mapper.pojo.logging.impl.PojoMapperLog;
2019
import org.hibernate.search.util.common.SearchException;
2120
import org.hibernate.search.util.common.logging.CategorizedLogger;
2221
import org.hibernate.search.util.common.logging.impl.LoggerFactory;
@@ -101,7 +100,7 @@ void skippingPreliminaryCacheLookupsForNonEntityIdEntityLoader(String entityName
101100
SearchException transactionHandlingException(String causeMessage, @Cause Throwable cause);
102101

103102
@LogMessage(level = Logger.Level.ERROR)
104-
@Message(id = PojoMapperLog.ID_OFFSET + 35, value = "Unable to shut down Hibernate Search:")
103+
@Message(id = ID_OFFSET + 35, value = "Unable to shut down Hibernate Search:")
105104
void shutdownFailed(@Cause Throwable cause);
106105

107106
@Message(id = ID_OFFSET + 36, value = "Cannot use scroll() with scroll mode '%1$s' with Hibernate Search queries:"

0 commit comments

Comments
 (0)