#30 Fix logging in the controller