Skip to content

Commit 685e2a5

Browse files
committed
Log store dirty/clean state at startup.
1 parent 845bab5 commit 685e2a5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

console/executor_store.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ code executor::open_store_coded(bool details)
116116
return ec;
117117
}
118118

119-
logger(BN_DATABASE_STARTED);
119+
logger(store_.is_dirty() ? BN_DATABASE_STARTED_DIRTY : BN_DATABASE_STARTED);
120120
return error::success;
121121
}
122122

console/localize.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ namespace node {
171171
#define BN_NODE_INTERRUPT \
172172
"Press CTRL-C to stop the node."
173173
#define BN_DATABASE_STARTED \
174-
"Database is started."
174+
"Database is started (clean)."
175+
#define BN_DATABASE_STARTED_DIRTY \
176+
"Database is started (dirty)."
175177
#define BN_NETWORK_STARTING \
176178
"Please wait while network is starting..."
177179
#define BN_NODE_START_FAIL \

0 commit comments

Comments
 (0)