Remove unneeded log prefix

We see the function anyways
This commit is contained in:
Florian Bruhin 2018-07-19 00:31:40 +02:00
parent 7d695d40b9
commit 3b6c4d4b85

View File

@ -447,12 +447,12 @@ def opengl_vendor(): # pragma: no cover
ctx = QOpenGLContext()
ok = ctx.create()
if not ok:
log.init.debug("opengl_vendor: Creating context failed!")
log.init.debug("Creating context failed!")
return None
ok = ctx.makeCurrent(surface)
if not ok:
log.init.debug("opengl_vendor: Making context current failed!")
log.init.debug("Making context current failed!")
return None
try:
@ -466,12 +466,11 @@ def opengl_vendor(): # pragma: no cover
try:
vf = ctx.versionFunctions(vp)
except ImportError as e:
log.init.debug("opengl_vendor: Importing version functions "
"failed: {}".format(e))
log.init.debug("Importing version functions failed: {}".format(e))
return None
if vf is None:
log.init.debug("opengl_vendor: Getting version functions failed!")
log.init.debug("Getting version functions failed!")
return None
return vf.glGetString(vf.GL_VENDOR)