better log info about write permission
This commit is contained in:
parent
8d4b78296a
commit
4429aeb1c6
@ -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()
|
||||
|
@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user