title: Qt: QGLShaderProgram turn off log messages
body: <p>Is there a way to turn of log messages when calling QGLShaderProgram::link()?
  <a href="http://qt-project.org/doc/qt-4.8/qglshaderprogram.html#link" rel="nofollow">http://qt-project.org/doc/qt-4.8/qglshaderprogram.html#link</a></p>
  
  <p>Messages look like:</p>
  
  <pre><code>QGLShader::link: "Vertex shader(s) linked, fragment shader(s) linked.
  "
  </code></pre>
  
  <p>Qt code looks like this:
  src/opengl/qglshaderprogram.cpp:893</p>
  
  <pre><code>    glLinkProgram(program);
      value = 0;
      glGetProgramiv(program, GL_LINK_STATUS, &amp;value);
      d-&gt;linked = (value != 0);
      value = 0;
      glGetProgramiv(program, GL_INFO_LOG_LENGTH, &amp;value);
      d-&gt;log = QString();
      if (value &gt; 1) {
          char *logbuf = new char [value];
          GLint len;
          glGetProgramInfoLog(program, value, &amp;len, logbuf);
          d-&gt;log = QString::fromLatin1(logbuf);
          QString name = objectName();
          if (name.isEmpty())
              qWarning() &lt;&lt; "QGLShader::link:" &lt;&lt; d-&gt;log;
          else
              qWarning() &lt;&lt; "QGLShader::link[" &lt;&lt; name &lt;&lt; "]:" &lt;&lt; d-&gt;log;
          delete [] logbuf;
      }
      return d-&gt;linked;
  }
  </code></pre>