File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717//! Contains the DataStore, used to store input related data in a persistent way.
1818
1919use crate :: input:: KeyboardType ;
20- use log:: { debug, error} ;
20+ use log:: { debug, error, info } ;
2121use serde:: { Deserialize , Serialize } ;
2222use std:: fs:: File ;
2323use std:: io:: { Read , Write } ;
@@ -157,7 +157,7 @@ impl FileReaderWriter for DefaultFileReaderWriter {
157157 let path = Path :: new ( & self . filepath ) ;
158158 let mut fs_string = String :: new ( ) ;
159159 match File :: open ( path) {
160- Err ( e) => error ! ( "couldn't open {:?}: {}" , path, e) ,
160+ Err ( e) => info ! ( "couldn't open {:?}: {}" , path, e) ,
161161 Ok ( mut file) => match file. read_to_string ( & mut fs_string) {
162162 Err ( e) => error ! ( "Couldn't read from {:?}: {}" , path, e) ,
163163 Ok ( _) => debug ! ( "Successfully read from file {:?}" , path) ,
You can’t perform that action at this time.
0 commit comments