Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e13230c1 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari
Browse files

Shift error log to info for rust data store

When data store is first added, the file will be missing, so
info log is more appropriate

Test: manual
Bug: 373465427
Flag: EXEMPT bugfix
Change-Id: I9082ae1ea28b4dc21dae5ea45aef177210426240
parent a1343ba7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
//! Contains the DataStore, used to store input related data in a persistent way.

use crate::input::KeyboardType;
use log::{debug, error};
use log::{debug, error, info};
use serde::{Deserialize, Serialize};
use std::fs::File;
use std::io::{Read, Write};
@@ -157,7 +157,7 @@ impl FileReaderWriter for DefaultFileReaderWriter {
        let path = Path::new(&self.filepath);
        let mut fs_string = String::new();
        match File::open(path) {
            Err(e) => error!("couldn't open {:?}: {}", path, e),
            Err(e) => info!("couldn't open {:?}: {}", path, e),
            Ok(mut file) => match file.read_to_string(&mut fs_string) {
                Err(e) => error!("Couldn't read from {:?}: {}", path, e),
                Ok(_) => debug!("Successfully read from file {:?}", path),