log when nvme isn't mounted (#20428)

Co-authored-by: Comma Device <device@comma.ai>
pull/61/head
Adeeb Shihadeh 4 years ago committed by GitHub
parent ce5d93da44
commit 33500bf23f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      selfdrive/loggerd/uploader.py

@ -6,11 +6,13 @@ import requests
import threading
import time
import traceback
from pathlib import Path
from cereal import log
import cereal.messaging as messaging
from common.api import Api
from common.params import Params
from selfdrive.hardware import TICI
from selfdrive.loggerd.xattr_cache import getxattr, setxattr
from selfdrive.loggerd.config import ROOT
from selfdrive.swaglog import cloudlog
@ -198,6 +200,9 @@ def uploader_fn(exit_event):
cloudlog.info("uploader missing dongle_id")
raise Exception("uploader can't start without dongle id")
if TICI and not Path("/data/media").is_mount():
cloudlog.debug("NVME not mounted")
sm = messaging.SubMaster(['deviceState'])
uploader = Uploader(dongle_id, ROOT)

Loading…
Cancel
Save