update log function for new controller