Add logging to study processing

Tiny change but useful for debugging.
is the msg scrubbed at some point? it can be quite long and contain new lines and that stuff, is it supported by the logger?