write log message with code if eval'ing page markup fails