Add logging for controllers