|
|
@ -9,7 +9,6 @@ import time |
|
|
|
import glob |
|
|
|
import glob |
|
|
|
from typing import NoReturn |
|
|
|
from typing import NoReturn |
|
|
|
|
|
|
|
|
|
|
|
from openpilot.common.file_helpers import mkdirs_exists_ok |
|
|
|
|
|
|
|
import openpilot.selfdrive.sentry as sentry |
|
|
|
import openpilot.selfdrive.sentry as sentry |
|
|
|
from openpilot.system.hardware.hw import Paths |
|
|
|
from openpilot.system.hardware.hw import Paths |
|
|
|
from openpilot.system.swaglog import cloudlog |
|
|
|
from openpilot.system.swaglog import cloudlog |
|
|
@ -128,7 +127,7 @@ def report_tombstone_apport(fn): |
|
|
|
new_fn = f"{date}_{get_commit(default='nocommit')[:8]}_{safe_fn(clean_path)}"[:MAX_TOMBSTONE_FN_LEN] |
|
|
|
new_fn = f"{date}_{get_commit(default='nocommit')[:8]}_{safe_fn(clean_path)}"[:MAX_TOMBSTONE_FN_LEN] |
|
|
|
|
|
|
|
|
|
|
|
crashlog_dir = os.path.join(Paths.log_root(), "crash") |
|
|
|
crashlog_dir = os.path.join(Paths.log_root(), "crash") |
|
|
|
mkdirs_exists_ok(crashlog_dir) |
|
|
|
os.makedirs(crashlog_dir, exist_ok=True) |
|
|
|
|
|
|
|
|
|
|
|
# Files could be on different filesystems, copy, then delete |
|
|
|
# Files could be on different filesystems, copy, then delete |
|
|
|
shutil.copy(fn, os.path.join(crashlog_dir, new_fn)) |
|
|
|
shutil.copy(fn, os.path.join(crashlog_dir, new_fn)) |
|
|
|