better log info about write permission

This commit is contained in:
jb-alvarado 2022-07-08 09:36:58 +02:00
parent 8d4b78296a
commit 4429aeb1c6
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ fn status_file(stat_file: &str, playout_stat: &PlayoutStatus) {
let json: String = serde_json::to_string(&data).expect("Serialize status data failed");
if let Err(e) = fs::write(stat_file, &json) {
error!("Unable to write status file: {e}");
error!("Unable to write to status file <b><magenta>{stat_file}</></b>: {e}");
};
} else {
let stat_file = File::options()

View File

@ -228,7 +228,7 @@ pub fn write_status(config: &PlayoutConfig, date: &str, shift: f64) {
let status_data: String = serde_json::to_string(&data).expect("Serialize status data failed");
if let Err(e) = fs::write(&config.general.stat_file, &status_data) {
error!("Unable to write status file: {e:?}")
error!("Unable to write to status file <b><magenta>{}</></b>: {e}", config.general.stat_file)
};
}