@@ -26,7 +26,7 @@ use std::str::FromStr;
26
26
27
27
use deepsize:: DeepSizeOf ;
28
28
use serde:: { Deserialize , Serialize } ;
29
- use tracing:: { error, trace, warn} ;
29
+ use tracing:: { error, info , trace, warn} ;
30
30
31
31
use crate :: errors:: StoreError ;
32
32
use crate :: records:: { Check , CheckType , TARGETS } ;
@@ -358,9 +358,9 @@ impl Store {
358
358
359
359
// TODO: somehow account for old versions that are not compatible with the store struct
360
360
if store. version != Version :: CURRENT {
361
- error ! ( "The store that was loaded is not of the current version:\n store has {} but the current version is {}" , store. version, Version :: CURRENT ) ;
361
+ warn ! ( "The store that was loaded is not of the current version:\n store has {} but the current version is {}" , store. version, Version :: CURRENT ) ;
362
362
if Version :: SUPPROTED . contains ( & store. version ) {
363
- error ! ( "The old store version is still supported, migrating to newer version" ) ;
363
+ warn ! ( "The old store version is still supported, migrating to newer version (in memory, can be made permanent by saving) " ) ;
364
364
store. version = Version :: CURRENT ;
365
365
} else {
366
366
error ! ( "The store version is not supported" ) ;
@@ -385,6 +385,7 @@ impl Store {
385
385
/// - Write fails
386
386
/// - Serialization fails
387
387
pub fn save ( & self ) -> Result < ( ) , StoreError > {
388
+ info ! ( "Saving the store" ) ;
388
389
let file = match fs:: File :: options ( )
389
390
. read ( false )
390
391
. write ( true )
0 commit comments