Skip to content

Commit

Permalink
feat(clipboard): use tracing::warn instead of print if fork fails
Browse files Browse the repository at this point in the history
  • Loading branch information
CheerfulPianissimo committed Mar 5, 2024
1 parent be35e61 commit 9608b10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wayshot/src/wayshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ fn main() -> Result<()> {
)?;
}
Err(e) => {
println!("Fork failed with error: {e}, couldn't offer image on the clipboard persistently. Use a clipboard manager.");
tracing::warn!("Fork failed with error: {e}, couldn't offer image on the clipboard persistently.
Use a clipboard manager to record screenshot.");
opts.copy(
Source::Bytes(buffer.into_inner().into()),
MimeType::Autodetect,
Expand Down

0 comments on commit 9608b10

Please sign in to comment.