Fix log

Fixes the undefined log call, and gains roughly 2 seconds per sample.