chore: reduce amount of logging while recording in case my home server has been struggling to keep up with it
This commit is contained in:
@@ -59,17 +59,12 @@ impl EventHandler for Handler {
|
||||
}
|
||||
}
|
||||
EventContext::VoiceTick(voice_tick) => {
|
||||
tracing::debug!(?voice_tick);
|
||||
|
||||
for (ssrc, voice_data) in &voice_tick.speaking {
|
||||
let user_id = {
|
||||
let known_ssrcs = self.known_ssrcs.lock().unwrap();
|
||||
tracing::debug!(?known_ssrcs, ?ssrc);
|
||||
known_ssrcs.get_left_for(ssrc).cloned()
|
||||
};
|
||||
|
||||
tracing::info!(?user_id);
|
||||
|
||||
if let Some(pcm) = &voice_data.decoded_voice {
|
||||
let may_record = user_id
|
||||
.map_async(|user_id| {
|
||||
@@ -131,7 +126,6 @@ impl EventHandler for Handler {
|
||||
let channels = self.audio_channels;
|
||||
let sample_rate = self.audio_sample_rate;
|
||||
|
||||
tracing::info!("going to write the audio shortly");
|
||||
|
||||
let recording_manager = self.recording_manager.clone();
|
||||
let samples = pcm.clone();
|
||||
@@ -147,7 +141,7 @@ impl EventHandler for Handler {
|
||||
.write(&recording, recording_data)
|
||||
.await
|
||||
.expect("TODO");
|
||||
tracing::info!(?recording, "successfully wrote the audio!");
|
||||
tracing::info!(%recording, "successfully wrote the audio!");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user