uploader: compress rlogs (#24447)

pull/24359/head
Adeeb Shihadeh 3 years ago committed by GitHub
parent 4beb764aed
commit 66fbce638f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/loggerd/uploader.py

@ -261,7 +261,7 @@ def uploader_fn(exit_event):
key, fn = d
# qlogs and bootlogs need to be compressed before uploading
if key.endswith('qlog') or (key.startswith('boot/') and not key.endswith('.bz2')):
if key.endswith(('qlog', 'rlog')) or (key.startswith('boot/') and not key.endswith('.bz2')):
key += ".bz2"
success = uploader.upload(key, fn, sm['deviceState'].networkType.raw, sm['deviceState'].networkMetered)

Loading…
Cancel
Save