Skip to content

Commit

Permalink
add some debug logging
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19646 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 14, 2018
1 parent 9fc898b commit bec71c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xpra/client/gtk2/gtk2_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
grablog = Logger("grab")
mouselog = Logger("mouse")
draglog = Logger("dragndrop")
drawlog = Logger("draw")


from collections import namedtuple
Expand Down Expand Up @@ -118,6 +119,7 @@ def apply_geometry_hints(self, hints):

def queue_draw(self, x, y, width, height):
window = self.get_window()
drawlog("queue_draw%s window=%s, window offset=%s", (x, y, width, height), window, self.window_offset)
if not window:
log.warn("Warning: ignoring draw packet,")
log.warn(" received for a window which is not realized yet or gone already")
Expand Down
1 change: 1 addition & 0 deletions src/xpra/client/gtk_base/gtk_client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
try:
PADDING_COLORS = tuple(float(x.strip()) for x in PADDING_COLORS_STR.split(","))
assert len(PADDING_COLORS)==3, "you must specify 3 components"
log("PADDING_COLORS=%s", PADDING_COLORS)
except Exception as e:
log.warn("Warning: invalid padding colors specified,")
log.warn(" %s", e)
Expand Down

0 comments on commit bec71c1

Please sign in to comment.