Fix log

Fixes the undefined log call, and gains roughly 2 seconds per sample.
Didn't I just reviewed this code in the other PR? :-/ I'm confused