Add logging to study processing

Tiny change but useful for debugging.
Up to you, we are not requesting qiita pet testing right now, but at some point we will need to add it...