Get the real extension if log file is gzipped

Udev collector compresses crash log and appends .gz as file extension
which is not recognized by crash sender. This patch fixes crash sender
by extracting real file extension if the original log file ends with

TEST=Manually test, crash sender can send udev collector generated
     log file: report id 7fa1184e8e62946f.

Change-Id: Ic0abd9f264ef601399cc5edd27faa6f64cd9f204
Reviewed-by: Michael Krebs <>
Reviewed-by: Simon Que <>
Commit-Ready: Yufeng Shen <>
Tested-by: Yufeng Shen <>
1 file changed
tree: a7956f2b633557e01fe1b04e076833b6b19496d0
  1. crash_reporter/