Log type of database on start-up
@@ -194,6 +194,12 @@ func (s *Store) Open(enableBootstrap bool) error {
s.openT = time.Now()
s.logger.Printf("opening store with node ID %s", s.raftID)
+ dbType := "in-memory"
+ if !s.dbConf.Memory {
+ dbType = "on-disk"
+ }
+ s.logger.Printf("configured for an %s database", dbType)
+
s.logger.Printf("ensuring directory at %s exists", s.raftDir)
err := os.MkdirAll(s.raftDir, 0755)
if err != nil {
