gm3dmo / syslog-to-csv

Turn log files into data.
GNU General Public License v3.0
15 stars 7 forks source link

jsonl2csv does not seem to handle .gz files #32

Closed gm3dmo closed 1 year ago

gm3dmo commented 1 year ago
--- Logging error ---
Traceback (most recent call last):
  File "syslog-to-csv/b2c.py", line 102, in main
    subprocess.run([cmd], check=True, shell=True)
  File "/usr/lib/pypy3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/bin/pypy3 syslog-to-csv/jsonl-to-csv.py github-logs/exceptions.log.5.gz --log-type exceptions --csv-file github-logs/exceptions.log.5.gz.csv']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/pypy3.9/logging/__init__.py", line 1083, in emit
    msg = self.format(record)
  File "/usr/lib/pypy3.9/logging/__init__.py", line 927, in format
    return fmt.format(record)
  File "/usr/lib/pypy3.9/logging/__init__.py", line 663, in format
    record.message = record.getMessage()
  File "/usr/lib/pypy3.9/logging/__init__.py", line 367, in getMessage
    msg = msg % self.args
gm3dmo commented 1 year ago

Fixed