Skip to content

Commit

Permalink
better exception logging
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@17316 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 6, 2017
1 parent ff155d4 commit de3e120
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/xpra/client/client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ def metadata_replace(match):
else:
utf8_title = title
except Exception as e:
log.error("error parsing window title: %s", e)
log.error("Error parsing window title:")
log.error(" %s", e)
utf8_title = b""
self.set_title(utf8_title)

Expand Down
1 change: 1 addition & 0 deletions src/xpra/client/gl/gtk_base/gtkgl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def gl_context(self):
try:
context = GtkGLExtContext(b)
except Exception as e:
log("gl_context()", exc_info=True)
log.error("Error: %s", e)
return None
log("%s.gl_context() GL Pixmap backing size: %d x %d, context=%s", self, w, h, context)
Expand Down
3 changes: 2 additions & 1 deletion src/xpra/client/keyboard_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def mod_defaults():
args.append(int(x))
args = tuple(args)
except Exception as e:
log.warn("failed to parse arguments of shortcut '%s': %s", s, e)
log.warn("Warning: failed to parse arguments of shortcut:")
log.warn(" '%s': %s", s, e)
continue
action = action.replace("-", "_") #must be an object attribute
log("action(%s)=%s%s", s, action, args)
Expand Down

0 comments on commit de3e120

Please sign in to comment.