The disciplinary outcome reflects rules requiring judges to avoid conduct that could undermine public confidence.