Add logging to study processing

Tiny change but useful for debugging.
and this one? it looks like they're not needed