emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ement e509dc958c: Dev: (ement--sync-callback) Add debug


From: ELPA Syncer
Subject: [elpa] externals/ement e509dc958c: Dev: (ement--sync-callback) Add debug call
Date: Wed, 6 Dec 2023 21:58:00 -0500 (EST)

branch: externals/ement
commit e509dc958ca90e239b060d8ca31ed240beb0871d
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Dev: (ement--sync-callback) Add debug call
    
    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.
---
 ement.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ement.el b/ement.el
index c823a83754..2ab80b0db9 100644
--- a/ement.el
+++ b/ement.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]