Prefix all log macros with log::

This commit is contained in:
Moritz Ruth 2024-03-01 00:16:09 +01:00
parent 6c284b6365
commit 1ced4381b8
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
10 changed files with 39 additions and 47 deletions

View file

@ -138,7 +138,7 @@ fn state_matches(target: &Target, state: &PaEntityState) -> bool {
TargetPredicatePattern::Regex { regex } => regex.is_match(v),
}
} else {
warn!("Property \"{}\" is not available for targets of type \"{}\"", &p.property, &target.kind);
log::warn!("Property \"{}\" is not available for targets of type \"{}\"", &p.property, &target.kind);
false
}

View file

@ -129,7 +129,7 @@ impl<S: Clone + Debug + Send + Sync + 'static> PlayerctlStateWatcher<S> {
let mut g = cloned_state.write().unwrap();
*g = new_state.clone();
if cloned_new_states.send(new_state).is_err() {
warn!("No one is listening to player state changes")
log::warn!("No one is listening to player state changes")
}
}
}
@ -211,7 +211,7 @@ pub async fn manage_button(path: KeyPath, config: ButtonConfig, mut events: broa
let status = std::process::Command::new("playerctl").arg(command).status().unwrap();
if !status.success() {
error!("`playerctl {}` failed with exit code {}", command, status)
log::error!("`playerctl {}` failed with exit code {}", command, status)
}
}
}
@ -252,7 +252,7 @@ pub async fn manage_shuffle(path: KeyPath, config: ShuffleConfig, mut events: br
let status = std::process::Command::new("playerctl").args(["shuffle", new]).status().unwrap();
if !status.success() {
error!("`playerctl shuffle {}` failed with exit code {}", new, status)
log::error!("`playerctl shuffle {}` failed with exit code {}", new, status)
}
}
}
@ -294,7 +294,7 @@ pub async fn manage_loop(path: KeyPath, config: LoopConfig, mut events: broadcas
let status = std::process::Command::new("playerctl").args(["loop", new]).status().unwrap();
if !status.success() {
error!("`playerctl loop {}` failed with exit code {}", new, status)
log::error!("`playerctl loop {}` failed with exit code {}", new, status)
}
}
}