mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
improve android logger, by stripping \r, because android studio suppresses logs that ends with \r.
This commit is contained in:
parent
37b8bfcb33
commit
2be885bb35
1 changed files with 3 additions and 0 deletions
|
|
@ -81,7 +81,10 @@ void linphone_android_log_handler(int prio, char *str) {
|
|||
} else {
|
||||
current = str;
|
||||
while ((next = strchr(current, '\n')) != NULL) {
|
||||
|
||||
*next = '\0';
|
||||
if (next != str && next[-1] == '\r')
|
||||
next[-1] = '\0';
|
||||
__android_log_write(prio, LogDomain, current);
|
||||
current = next + 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue