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
7b7ad00a
Commit
7b7ad00a
authored
Jun 08, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(src/app/logger/Logger): set `linphone` domain by default in linphone handler
parent
2f833894
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Logger.cpp
linphone-desktop/src/app/logger/Logger.cpp
+3
-5
No files found.
linphone-desktop/src/app/logger/Logger.cpp
View file @
7b7ad00a
...
...
@@ -89,7 +89,7 @@ static void linphoneLog (const char *domain, OrtpLogLevel type, const char *fmt,
QByteArray
dateTime
=
getFormattedCurrentTime
();
char
*
msg
=
bctbx_strdup_vprintf
(
fmt
,
args
);
fprintf
(
stderr
,
format
,
dateTime
.
constData
(),
domain
,
msg
);
fprintf
(
stderr
,
format
,
dateTime
.
constData
(),
domain
?
domain
:
"linphone"
,
msg
);
bctbx_free
(
msg
);
...
...
@@ -163,12 +163,10 @@ void Logger::init () {
qInstallMessageHandler
(
Logger
::
log
);
linphone_core_set_log_level
(
ORTP_MESSAGE
);
linphone_core_set_log_handler
(
[](
const
char
*
domain
,
OrtpLogLevel
type
,
const
char
*
fmt
,
va_list
args
)
{
linphone_core_set_log_handler
([](
const
char
*
domain
,
OrtpLogLevel
type
,
const
char
*
fmt
,
va_list
args
)
{
if
(
mInstance
->
isVerbose
())
linphoneLog
(
domain
,
type
,
fmt
,
args
);
}
);
});
linphone_core_set_log_collection_path
(
Paths
::
getLogsDirPath
().
c_str
());
linphone_core_set_log_collection_max_file_size
(
MAX_LOGS_COLLECTION_SIZE
);
...
...
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