Skip to content

Commit

Permalink
Dev: (ement--sync-callback) Add debug call
Browse files Browse the repository at this point in the history
This will allow users to enable debugging and redefine this function
to get a message in the warnings buffer, which will allow them to
determine how often sync responses are being received, which may help
track down performance problems.
  • Loading branch information
alphapapa committed Dec 7, 2023
1 parent 7b78c13 commit e509dc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ement.el
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ a filter ID). When unspecified, the value of
(defun ement--sync-callback (session data)
"Process sync DATA for SESSION.
Runs `ement-sync-callback-hook' with SESSION."
(ement-debug (ement-user-id (ement-session-user session)))
;; Remove the sync first. We already have the data from it, and the
;; process has exited, so it's safe to run another one.
(setf (map-elt ement-syncs session) nil)
Expand Down

0 comments on commit e509dc9

Please sign in to comment.