Add logging when looking up users.