From d4735520c811c81c2874e2d97d6d7204bf0f5ae7 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Wed, 21 May 2008 03:01:36 +0000 Subject: Change open and close log messages. --- src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java | 4 +++- src/main/java/com/amazon/carbonado/spi/AbstractRepository.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java index eeb8e9a..b2b1271 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepository.java @@ -158,6 +158,8 @@ abstract class BDBRepository extends AbstractRepository mEnvHome = builder.getEnvironmentHomeFile(); mSingleFileName = builder.getSingleFileName(); mFileNameMap = builder.getFileNameMap(); + + getLog().info("Opening repository \"" + getName() + '"'); } @Override @@ -462,7 +464,7 @@ abstract class BDBRepository extends AbstractRepository * milliseconds, or zero if never. */ void start(long checkpointInterval, long deadlockDetectorInterval) { - getLog().info("Opening repository \"" + getName() + '"'); + getLog().info("Opened repository \"" + getName() + '"'); if (mRunCheckpointer && checkpointInterval > 0) { mCheckpointer = new Checkpointer(this, checkpointInterval); diff --git a/src/main/java/com/amazon/carbonado/spi/AbstractRepository.java b/src/main/java/com/amazon/carbonado/spi/AbstractRepository.java index 6bf09bc..563ae9e 100644 --- a/src/main/java/com/amazon/carbonado/spi/AbstractRepository.java +++ b/src/main/java/com/amazon/carbonado/spi/AbstractRepository.java @@ -315,7 +315,7 @@ public abstract class AbstractRepository } finally { repository.mHasShutdown = true; mRepository.clear(); - repository.info("Finished closing repository \"" + repository.getName() + '"'); + repository.info("Closed repository \"" + repository.getName() + '"'); } } -- cgit v1.2.3