Rearchitect logging

This commit is contained in:
topjohnwu
2022-07-06 01:16:08 -07:00
parent 2e52875b50
commit 70fd03d5fc
14 changed files with 172 additions and 154 deletions

View File

@@ -149,18 +149,6 @@ void magisk_log_write(int prio, const char *msg, int len) {
}
}
void magisk_logging() {
rust::magisk_logging();
forward_logging_to_rs();
exit_on_error(false);
}
void android_logging() {
rust::android_logging();
forward_logging_to_rs();
exit_on_error(false);
}
void start_log_daemon() {
int fds[2];
if (pipe2(fds, O_CLOEXEC) == 0) {