add my plan
change log param. move log event to other function.