Skip to content

Commit

Permalink
music: add even more debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Jul 4, 2023
1 parent 013095c commit 626e655
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/blocks/music.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,12 +515,15 @@ impl Player {
.await
.error("failed to open player proxy")?;

debug!("querying player info");
let (metadata, status, volume) =
tokio::join!(proxy.metadata(), proxy.playback_status(), proxy.volume());

let metadata = metadata.error("failed to obtain player metadata")?;
let status = status.error("failed to obtain player status")?;

debug!("Player created");

Ok(Self {
status: PlaybackStatus::from_str(&status),
owner,
Expand Down

0 comments on commit 626e655

Please sign in to comment.