output_configuration: Better log errors

This commit is contained in:
Victoria Brekenfeld 2025-01-07 17:38:14 +01:00
parent 7f69244e07
commit ff22b98ec7

View file

@ -143,7 +143,7 @@ impl State {
&self.common.clock, &self.common.clock,
); );
if let Err(err) = res { if let Err(err) = res {
warn!(?err, "Failed to apply config. Resetting"); warn!("Failed to apply config. Resetting: {:?}", err);
for (output, backup) in backups { for (output, backup) in backups {
{ {
let mut current_config = output let mut current_config = output
@ -164,7 +164,7 @@ impl State {
self.common.startup_done.clone(), self.common.startup_done.clone(),
&self.common.clock, &self.common.clock,
) { ) {
error!(?err, "Failed to reset output config."); error!("Failed to reset output config: {:?}", err);
} }
} }
return false; return false;