- fix logging - too much different subsystem names were used
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
# include "../engine/audio/Audio_Android.h"
|
||||
#endif
|
||||
|
||||
#define LOG_SUBSYSTEM "AudioManager"
|
||||
#define LOG_SUBSYSTEM "audio"
|
||||
|
||||
|
||||
AudioManager::AudioManager()
|
||||
|
||||
@@ -18,7 +18,7 @@ const std::string Status_NoMediaAction = "no valid media action";
|
||||
const std::string Status_NoCommand = "no valid command";
|
||||
const std::string Status_NoAudioManager = "no audio manager";
|
||||
|
||||
#define LOG_SUBSYSTEM "Agent"
|
||||
#define LOG_SUBSYSTEM "agent"
|
||||
|
||||
AgentImpl::AgentImpl()
|
||||
:mShutdown(false), mEventListChangeCondVar()
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#ifdef TARGET_ANDROID
|
||||
|
||||
#define LOG_SUBSYSTEM "Audio"
|
||||
#define LOG_SUBSYSTEM "audio"
|
||||
|
||||
using namespace Audio;
|
||||
|
||||
@@ -242,4 +242,4 @@ void AndroidOutputDevice::onErrorAfterClose(oboe::AudioStream *stream, oboe::Res
|
||||
// soundEngine.restart(); // please check oboe samples for soundEngine.restart(); call
|
||||
}
|
||||
}
|
||||
#endif // TARGET_ANDROID
|
||||
#endif // TARGET_ANDROID
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
using namespace Audio;
|
||||
|
||||
#define LOG_SUBSYSTEM "CoreAudio"
|
||||
#define LOG_SUBSYSTEM "audio"
|
||||
|
||||
enum
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <algorithm>
|
||||
#include <assert.h>
|
||||
|
||||
#define LOG_SUBSYSTEM "Audio"
|
||||
#define LOG_SUBSYSTEM "audio"
|
||||
|
||||
using namespace Audio;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define DRV_QUERYFUNCTIONINSTANCEID (DRV_RESERVED + 17)
|
||||
#define DRV_QUERYFUNCTIONINSTANCEIDSIZE (DRV_RESERVED + 18)
|
||||
|
||||
#define LOG_SUBSYSTEM "DirectSound"
|
||||
#define LOG_SUBSYSTEM "audio"
|
||||
|
||||
using namespace Audio;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "Audio_Mixer.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "Mixer"
|
||||
#define LOG_SUBSYSTEM "audio"
|
||||
using namespace Audio;
|
||||
|
||||
Mixer::Stream::Stream()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "helper/HL_Log.h"
|
||||
#include <assert.h>
|
||||
#include <chrono>
|
||||
#define LOG_SUBSYSTEM "NULL audio"
|
||||
#define LOG_SUBSYSTEM "audio"
|
||||
|
||||
using namespace Audio;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "../helper/HL_Log.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "Player"
|
||||
#define LOG_SUBSYSTEM "audio"
|
||||
|
||||
using namespace Audio;
|
||||
// -------------- Player -----------
|
||||
|
||||
@@ -32,7 +32,7 @@ WaveFormatEx;
|
||||
|
||||
#define WAVE_FORMAT_PCM 1
|
||||
|
||||
#define LOG_SUBSYSTEM "WavFileReader"
|
||||
#define LOG_SUBSYSTEM "audio"
|
||||
|
||||
#define LOCK std::unique_lock<std::recursive_mutex> lock(mFileMtx);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <resip/stack/Pidf.hxx>
|
||||
#include <resip/stack/PlainContents.hxx>
|
||||
|
||||
#define LOG_SUBSYSTEM "Account"
|
||||
#define LOG_SUBSYSTEM "engine"
|
||||
|
||||
#define CONFIG(X) mConfig->at(X)
|
||||
#define CONFIG_EXISTS(X) mConfig->exists(X)
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "../helper/HL_Log.h"
|
||||
#include "../helper/HL_String.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "AudioProvider"
|
||||
#define LOG_SUBSYSTEM "engine"
|
||||
|
||||
AudioProvider::AudioProvider(UserAgent& agent, MT::Terminal& terminal)
|
||||
:mUserAgent(agent), mTerminal(terminal), mState(0),
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
# include "resip/stack/ssl/WinSecurity.hxx"
|
||||
#endif
|
||||
|
||||
#define LOG_SUBSYSTEM "[Engine]"
|
||||
#define LOG_SUBSYSTEM "engine"
|
||||
#define LOCK Lock l(mGuard)
|
||||
#define CAST2RESIPSESSION(x) (x.isValid() ? (x->getAppDialogSet().isValid() ? dynamic_cast<ResipSession*>(x->getAppDialogSet().get()) : NULL) : NULL)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "../helper/HL_Sync.h"
|
||||
#include "../helper/HL_String.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "[Engine]"
|
||||
#define LOG_SUBSYSTEM "engine"
|
||||
|
||||
typedef resip::SdpContents::Session::Medium Medium;
|
||||
typedef resip::SdpContents::Session::MediumContainer MediumContainer;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <cstdio>
|
||||
#include <chrono>
|
||||
|
||||
#define LOG_SUBSYSTEM "RtpDump"
|
||||
#define LOG_SUBSYSTEM "network"
|
||||
|
||||
static constexpr size_t MAX_RTP_PACKET_SIZE = 65535;
|
||||
static const char RTPDUMP_SHEBANG[] = "#!rtpplay1.0";
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "HL_Sync.h"
|
||||
#include "HL_Exception.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "[SocketHeap]"
|
||||
#define LOG_SUBSYSTEM "network"
|
||||
|
||||
#ifndef WIN32
|
||||
#define WSAGetLastError(X) errno
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../helper/HL_IuUP.h"
|
||||
#include "../helper/HL_Log.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "AmrCodec"
|
||||
#define LOG_SUBSYSTEM "media"
|
||||
using namespace MT;
|
||||
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <string.h>
|
||||
#include <algorithm>
|
||||
|
||||
#define LOG_SUBSYSTEM "Codec"
|
||||
#define LOG_SUBSYSTEM "media"
|
||||
|
||||
#ifdef TARGET_LINUX
|
||||
# define stricmp strcasecmp
|
||||
|
||||
@@ -21,9 +21,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#define LOG_SUBSYSTEM "AudioReceiver"
|
||||
|
||||
//#define DUMP_DECODED
|
||||
#define LOG_SUBSYSTEM "media"
|
||||
|
||||
using namespace MT;
|
||||
|
||||
@@ -564,7 +562,7 @@ void AudioReceiver::produceCNG(std::chrono::milliseconds length, Audio::DataWind
|
||||
|
||||
AudioReceiver::DecodeResult AudioReceiver::decodeGapTo(Audio::DataWindow& output, DecodeOptions options)
|
||||
{
|
||||
ICELogDebug(<< "Gap detected.");
|
||||
ICELogMedia(<< "Gap detected.");
|
||||
|
||||
mDecodedLength = mResampledLength = 0;
|
||||
if (mCngPacket && mCodec)
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "jrtplib/src/rtptransmitter.h"
|
||||
#include "jrtplib/src/rtpsessionparams.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "AudioStream"
|
||||
#define LOG_SUBSYSTEM "media"
|
||||
|
||||
//#define DUMP_SENDING_AUDIO
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "../helper/HL_StreamState.h"
|
||||
#include "../helper/HL_Log.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "MT::Box"
|
||||
#define LOG_SUBSYSTEM "media"
|
||||
|
||||
using namespace MT;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "ICELog.h"
|
||||
#include <assert.h>
|
||||
|
||||
#define LOG_SUBSYSTEM "MT"
|
||||
#define LOG_SUBSYSTEM "media"
|
||||
using namespace MT;
|
||||
|
||||
NativeRtpSender::NativeRtpSender(Statistics& stat)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
//#include "resip/stack/SdpContents.hxx"
|
||||
#include "../engine/helper/HL_Log.h"
|
||||
|
||||
#define LOG_SUBSYSTEM "SingleAudioStream"
|
||||
#define LOG_SUBSYSTEM "media"
|
||||
|
||||
using namespace MT;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "MT_Statistics.h"
|
||||
#define LOG_SUBSYSTEM "Statistics"
|
||||
#define LOG_SUBSYSTEM "media"
|
||||
|
||||
using namespace MT;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "../helper/HL_Log.h"
|
||||
#include <math.h>
|
||||
|
||||
#define LOG_SUBSYSTEM "[Media]"
|
||||
#define LOG_SUBSYSTEM "media"
|
||||
|
||||
using namespace MT;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
using namespace ice;
|
||||
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
AuthTransaction::AuthTransaction()
|
||||
:Transaction(), mActive(false), mComposed(false), mConformsToKeepaliveSchedule(true),
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <memory>
|
||||
|
||||
using namespace ice;
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
//----------------------- AuthClientBinding -----------------
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
using namespace ice;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
using namespace ice;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
using namespace ice;
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
CandidatePair::CandidatePair()
|
||||
:mPriority(0), mState(CandidatePair::Frozen), mControlledIndex(0), mControllingIndex(1),
|
||||
mNomination(Nomination_None), mRole(Regular), mTransaction(NULL)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <sstream>
|
||||
|
||||
using namespace ice;
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
const char* CheckList::stateToString(int state)
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "ICEError.h"
|
||||
using namespace ice;
|
||||
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
#if defined(TARGET_WIN) && !defined(WINDOWS_RT)
|
||||
class IPHlpApi
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
using namespace ice;
|
||||
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
// ------------------ ClientAllocate -----------------
|
||||
|
||||
ClientAllocate::ClientAllocate(unsigned int lifetime)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
using namespace ice;
|
||||
|
||||
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
|
||||
Session::Session()
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
using namespace ice;
|
||||
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
const char* ice::RunningStateToString(RunningState state)
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#define STUN_HEADER_SIZE 20
|
||||
#define HMAC_DIGEST_SIZE 20
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
using namespace ice;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <assert.h>
|
||||
|
||||
using namespace ice;
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
const char* Transaction::stateToString(State state)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
using namespace ice;
|
||||
|
||||
#define LOG_SUBSYSTEM "ICE"
|
||||
#define LOG_SUBSYSTEM "ice"
|
||||
|
||||
TransactionList::TransactionList()
|
||||
:mRegularIndex(0), mPrioritizedIndex(0)
|
||||
|
||||
Reference in New Issue
Block a user