Improve logging

This commit is contained in:
topjohnwu
2017-09-27 04:06:44 +08:00
parent 9cb1cf756f
commit 6ce37b44db
4 changed files with 13 additions and 13 deletions

View File

@ -26,7 +26,7 @@ static void *logger_thread(void *args) {
while (1) {
// Start logcat
log_pid = exec_command(0, &log_fd, NULL, "logcat", "-s", "Magisk", "-v", "thread", NULL);
log_pid = exec_command(0, &log_fd, NULL, "logcat", "-v", "thread", "Magisk:I", "*:S", NULL);
if (log_pid > 0)
waitpid(log_pid, NULL, 0);
// For some reason it went here, clear buffer and restart