Skip to content

Commit

Permalink
fix: remove debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 5, 2024
1 parent afd906c commit c2722e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/dpp/dave/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,7 @@ try {
auto ciphersuite = CiphersuiteForProtocolVersion(protocolVersion_);

if (!transientKey) {
std::cout << "2\n";
if (!signingKeyId_.empty()) {
std::cout << "3\n";
transientKey = GetPersistedKeyPair(keyPairContext_, signingKeyId_, protocolVersion_);
if (!transientKey) {
DISCORD_LOG(LS_ERROR) << "Did not receive MLS signature private key from "
Expand All @@ -572,7 +570,6 @@ try {
}
}
else {
std::cout << "1\n";
transientKey = std::make_shared<::mlspp::SignaturePrivateKey>(
::mlspp::SignaturePrivateKey::generate(ciphersuite));
}
Expand Down
2 changes: 0 additions & 2 deletions src/dpp/voice/enabled/opus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,8 @@ discord_voice_client& discord_voice_client::send_audio_opus(uint8_t* opus_packet
if (result != dave::Encryptor::ResultCode::Success) {
log(ll_warning, "DAVE Encryption failure: " + std::to_string(result));
} else {
std::cout << "Encrypted " << encrypted_buffer.size() << " plain opus " << encoded_audio.size() << "\n";
encoded_audio = encrypted_buffer;
encoded_audio_length = encoded_audio.size();
std::cout << "New plain opus " << encoded_audio.size() << "\n";
}

}
Expand Down

0 comments on commit c2722e5

Please sign in to comment.