Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
d84ae26b
Commit
d84ae26b
authored
Feb 01, 2018
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(Logger): add a workaround to keep a ref on logging service
parent
a4ad61d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Logger.cpp
src/app/logger/Logger.cpp
+1
-1
Logger.hpp
src/app/logger/Logger.hpp
+2
-0
No files found.
src/app/logger/Logger.cpp
View file @
d84ae26b
...
...
@@ -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
));
}
...
...
src/app/logger/Logger.hpp
View file @
d84ae26b
...
...
@@ -57,6 +57,8 @@ private:
static
QMutex
mMutex
;
static
Logger
*
mInstance
;
std
::
shared_ptr
<
linphone
::
LoggingService
>
mLoggingService
;
};
#endif // LOGGER_H_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment