Skip to content
Snippets Groups Projects
Commit f3af752f authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9832: AudioRtpFactory: cleanup logging

parent eec9ac2b
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,6 @@
* as that of the covered work.
*/
#include "audio_rtp_factory.h"
#include "audio_zrtp_session.h"
#include "audio_srtp_session.h"
......@@ -112,13 +110,13 @@ void AudioRtpFactory::initSession()
void AudioRtpFactory::start(AudioCodec* audiocodec)
{
if (rtpSession_ == NULL)
throw AudioRtpFactoryException("AudioRtpFactory: Error: RTP session was null when trying to start audio thread");
throw AudioRtpFactoryException("RTP session was null when trying to start audio thread");
if (keyExchangeProtocol_ == SDES and cachedLocalContext_ and cachedRemoteContext_)
static_cast<AudioSrtpSession *>(rtpSession_)->restoreCryptoContext(cachedLocalContext_, cachedRemoteContext_);
if (rtpSession_->startRtpThread(*audiocodec) != 0)
throw AudioRtpFactoryException("AudioRtpFactory: Error: Failed to start AudioRtpSession thread");
throw AudioRtpFactoryException("Failed to start AudioRtpSession thread");
}
void AudioRtpFactory::stop()
......@@ -132,7 +130,7 @@ void AudioRtpFactory::stop()
int AudioRtpFactory::getSessionMedia()
{
if (rtpSession_ == NULL)
throw AudioRtpFactoryException("AudioRtpFactory: Error: RTP session was null when trying to get session media type");
throw AudioRtpFactoryException("RTP session was null when trying to get session media type");
return rtpSession_->getCodecPayloadType();
}
......@@ -140,7 +138,7 @@ int AudioRtpFactory::getSessionMedia()
void AudioRtpFactory::updateSessionMedia(AudioCodec *audiocodec)
{
if (rtpSession_ == NULL)
throw AudioRtpFactoryException("AudioRtpFactory: Error: rtpSession_ was null when trying to update IP address");
throw AudioRtpFactoryException("rtpSession_ was NULL when trying to update IP address");
rtpSession_->updateSessionMedia(*audiocodec);
}
......@@ -156,7 +154,7 @@ sfl::AudioZrtpSession * AudioRtpFactory::getAudioZrtpSession()
if (keyExchangeProtocol_ == ZRTP)
return static_cast<AudioZrtpSession *>(rtpSession_);
else
throw AudioRtpFactoryException("RTP: Error: rtpSession_ is NULL in getAudioZrtpSession");
throw AudioRtpFactoryException("rtpSession_ is NULL in getAudioZrtpSession");
}
void sfl::AudioRtpFactory::initLocalCryptoInfo()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment