perforator.py: better logging