Add logging to study processing

Tiny change but useful for debugging.
Those are both for testing purposes. Previously no test user had admin or superuser level for testing and I need it to test page access.