Skip to content

Commit

Permalink
#942: only log the full exception information at debug level (too ver…
Browse files Browse the repository at this point in the history
…bose)

git-svn-id: https://xpra.org/svn/Xpra/trunk@10259 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 11, 2015
1 parent 977423e commit 84f7901
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xpra/client/gl/gl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ def gl_init(self):
glTexImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, self.texture_pixel_format, w, h, 0, self.texture_pixel_format, GL_UNSIGNED_BYTE, None)
except Exception as e:
log.error("Error: cannot initialize %s texture: %ix%i", CONSTANT_TO_PIXEL_FORMAT.get(self.texture_pixel_format, self.texture_pixel_format), w, h)
log.error(" %s", e)
raise
log.error(" %r", e)
log("%s", self.gl_init, exc_info=True)
raise Exception("cannot initialize %s texture: %ix%i" % (CONSTANT_TO_PIXEL_FORMAT.get(self.texture_pixel_format, self.texture_pixel_format), w, h))
glBindFramebuffer(GL_FRAMEBUFFER, self.offscreen_fbo)
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_RECTANGLE_ARB, self.textures[TEX_FBO], 0)
glClear(GL_COLOR_BUFFER_BIT)
Expand Down

0 comments on commit 84f7901

Please sign in to comment.