fix log debug parameter

groupsName was undefined, should be username