Skip to content

Commit 2395197

Browse files
committed
doc: log when DB is persisted on shutdown
1 parent 4938413 commit 2395197

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/src/main/java/net/laprun/sustainability/power/persistence/SQLiteFilePersister.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ void scheduled() {
4646

4747
// Execute a backup during shutdown
4848
public void onShutdown(@Observes ShutdownEvent event) {
49+
Log.info("Persisting database on shutdown");
4950
backup();
5051
}
5152

0 commit comments

Comments
 (0)