mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
fix(Logger): add a workaround to keep a ref on logging service
This commit is contained in:
parent
a4ad61d314
commit
d84ae26bfb
2 changed files with 3 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ void Logger::init (const shared_ptr<linphone::Config> &config) {
|
|||
qInstallMessageHandler(Logger::log);
|
||||
|
||||
{
|
||||
shared_ptr<linphone::LoggingService> loggingService = linphone::LoggingService::get();
|
||||
shared_ptr<linphone::LoggingService> loggingService = mInstance->mLoggingService = linphone::LoggingService::get();
|
||||
loggingService->setLogLevel(linphone::LogLevel::LogLevelMessage);
|
||||
loggingService->setListener(make_shared<LinphoneLogger>(mInstance));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ private:
|
|||
|
||||
static QMutex mMutex;
|
||||
static Logger *mInstance;
|
||||
|
||||
std::shared_ptr<linphone::LoggingService> mLoggingService;
|
||||
};
|
||||
|
||||
#endif // LOGGER_H_
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue