Skip to content

Commit e13230c

Browse files
author
Vaibhav Devmurari
committed
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
1 parent a1343ba commit e13230c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/input/rust/data_store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! Contains the DataStore, used to store input related data in a persistent way.
1818
1919
use crate::input::KeyboardType;
20-
use log::{debug, error};
20+
use log::{debug, error, info};
2121
use serde::{Deserialize, Serialize};
2222
use std::fs::File;
2323
use 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),

0 commit comments

Comments
 (0)