mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-24 20:52:08 +08:00
put logcat in bootlog (#23217)
* put logcat in boot log
* continue
* use std::unique_ptr
* Revert "use std::unique_ptr"
This reverts commit c671f8ca7160691791bade508c4a8eb5cdb73fb8.
old-commit-hash: f042962933
This commit is contained in:
@@ -14,8 +14,10 @@ int main() {
|
||||
ExitHandler do_exit;
|
||||
PubMaster pm({"androidLog"});
|
||||
|
||||
log_time last_log_time = {};
|
||||
logger_list *logger_list = android_logger_list_alloc(ANDROID_LOG_RDONLY | ANDROID_LOG_NONBLOCK, 0, 0);
|
||||
struct timespec cur_time;
|
||||
clock_gettime(CLOCK_REALTIME, &cur_time);
|
||||
log_time last_log_time(cur_time);
|
||||
logger_list *logger_list = nullptr;
|
||||
|
||||
while (!do_exit) {
|
||||
// setup android logging
|
||||
|
||||
@@ -11,6 +11,8 @@ static kj::Array<capnp::word> build_boot_log() {
|
||||
if (Hardware::TICI()) {
|
||||
bootlog_commands.push_back("journalctl");
|
||||
bootlog_commands.push_back("sudo nvme smart-log --output-format=json /dev/nvme0");
|
||||
} else if (Hardware::EON()) {
|
||||
bootlog_commands.push_back("logcat -d");
|
||||
}
|
||||
|
||||
MessageBuilder msg;
|
||||
|
||||
Reference in New Issue
Block a user