A town justice in Westchester County received a sanction Monday after a state disciplinary panel found he mentioned he was a judge during a confrontation with a smoke shop owner, and again while defending comments he made as an attorney perceived to be racist by a judge.

Michael Tawil, an attorney and justice of the Ossining Town Court, agreed to be censured by the state Commission on Judicial Conduct, which disclosed the sanction Monday.