Skip to content

Commit

Permalink
only log an error the first time we see the name of failing cursor
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@23302 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 25, 2019
1 parent 0c0c611 commit ec1974c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/client/gtk_base/gtk_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,8 @@ def make_cursor(self, cursor_data):
return new_Cursor_for_display(display, gdk_cursor)
except TypeError as e:
log("new_Cursor_for_display(%s, %s)", display, gdk_cursor, exc_info=True)
log.error("Error creating cursor %s: %s", cursor_name.upper(), e)
if first_time("cursor:%s" % cursor_name.upper()):
log.error("Error creating cursor %s: %s", cursor_name.upper(), e)
global missing_cursor_names
if cursor_name not in missing_cursor_names:
cursorlog("cursor name '%s' not found", cursor_name)
Expand Down

0 comments on commit ec1974c

Please sign in to comment.