remove debug log spamming + log player events

This commit is contained in:
Henrik Friedrichsen
2019-09-01 01:10:19 +02:00
parent 352b865111
commit cd80ace4a8
2 changed files with 9 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ enum WorkerCommand {
RequestToken(oneshot::Sender<Token>),
}
#[derive(Clone, PartialEq)]
#[derive(Clone, Debug, PartialEq)]
pub enum PlayerEvent {
Playing,
Paused,
@@ -183,10 +183,10 @@ impl futures::Future for Worker {
info!("token updated!");
self.token_task = Box::new(futures::empty())
}
Ok(Async::NotReady) => debug!("waiting for token"),
Err(e) => {
error!("could not generate token: {:?}", e);
}
},
_ => ()
}
if !progress {