From 84f7901eadc62c9bb26ab268160d4ec0d9768db7 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 11 Aug 2015 13:13:40 +0000 Subject: [PATCH] #942: only log the full exception information at debug level (too verbose) git-svn-id: https://xpra.org/svn/Xpra/trunk@10259 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/client/gl/gl_window_backing_base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xpra/client/gl/gl_window_backing_base.py b/src/xpra/client/gl/gl_window_backing_base.py index 4f7240e57f..ad7710754e 100644 --- a/src/xpra/client/gl/gl_window_backing_base.py +++ b/src/xpra/client/gl/gl_window_backing_base.py @@ -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)