Use if (LOG>3) when logging messages while connecting.