Passing request.user to functions that do logging