summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-08-25 23:12:01 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-08-25 23:12:01 +0200
commit3df4bde0324f9389a59749847cb5b79dff4bea1f (patch)
tree7d9e8802bfec6dfa31532a24f1dca017fcf6f495 /src/Cache.cpp
parentSpeedup db a bit, but loose some crash resiliency (diff)
downloadnheko-3df4bde0324f9389a59749847cb5b79dff4bea1f.tar.xz
Add some log messages, that migrations are in progress
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp
index 2231aaac..91cde9e7 100644
--- a/src/Cache.cpp
+++ b/src/Cache.cpp
@@ -787,6 +787,7 @@ Cache::runMigrations()
            }},
         };
 
+        nhlog::db()->info("Running migrations, this may take a while!");
         for (const auto &[target_version, migration] : migrations) {
                 if (target_version > stored_version)
                         if (!migration()) {
@@ -794,6 +795,7 @@ Cache::runMigrations()
                                 return false;
                         }
         }
+        nhlog::db()->info("Migrations finished.");
 
         setCurrentFormat();
         return true;