Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bc6b5b8 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Fixed logcat debug output issue."

parents 4dfe6faa 1babede3
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -58,8 +58,10 @@ bool is_allowed_in_logcat(enum logtype ltype) {


void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) {
void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) {
  bool write_to_tombstone = log && log->tfd;
  bool write_to_tombstone = log && log->tfd;
  bool write_to_logcat = (!log || !log->quiet) && is_allowed_in_logcat(ltype)
  bool write_to_logcat = (!log || !log->quiet) && is_allowed_in_logcat(ltype);
                        && (log && log->crashed_tid == log->current_tid);
  if (log != NULL) {
    write_to_logcat &= (log->crashed_tid == log->current_tid);
  }
  bool write_to_activitymanager = log && log->amfd >= 0 && is_allowed_in_logcat(ltype);
  bool write_to_activitymanager = log && log->amfd >= 0 && is_allowed_in_logcat(ltype);


  char buf[512];
  char buf[512];