tweaked gen-log-data.py