Skip to content

Commit d1e46f2

Browse files
committed
Tweak UNINITIALIZED_COLLECTION_LOGGER_NAME
1 parent 91ea023 commit d1e46f2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bosk-mongo/src/main/java/works/bosk/drivers/mongo/MongoDriver.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import com.mongodb.MongoClientSettings;
44
import java.io.IOException;
5-
import org.slf4j.Logger;
6-
import org.slf4j.LoggerFactory;
75
import works.bosk.Bosk;
86
import works.bosk.BoskDriver;
97
import works.bosk.BoskInfo;
@@ -104,5 +102,5 @@ interface MongoDriverFactory<RR extends StateTreeNode> extends DriverFactory<RR>
104102
* We publicize the name of this logger so users can choose to set it to {@code ERROR}
105103
* to suppress the warnings.
106104
*/
107-
Logger UNINITIALIZED_COLLECTION_LOGGER = LoggerFactory.getLogger(MongoDriver.class.getName() + ".uninitializedCollection");
105+
String UNINITIALIZED_COLLECTION_LOGGER_NAME = MongoDriver.class.getName() + ".uninitializedCollection";
108106
}

bosk-mongo/src/main/java/works/bosk/drivers/mongo/internal/MainDriver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,4 +714,5 @@ private interface RetryableOperation<X extends Exception, Y extends Exception> {
714714
public static final BsonString MANIFEST_ID = new BsonString("manifest");
715715
private static final Exception FAILURE_TO_COMPUTE_INITIAL_ROOT = new InitialRootFailureException("Failure to compute initial root");
716716
private static final Logger LOGGER = LoggerFactory.getLogger(MainDriver.class);
717+
private static final Logger UNINITIALIZED_COLLECTION_LOGGER = LoggerFactory.getLogger(UNINITIALIZED_COLLECTION_LOGGER_NAME);
717718
}

0 commit comments

Comments
 (0)