[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot d40a458 14/24: Log debug messages through eglot--
From: |
João Távora |
Subject: |
[elpa] externals/eglot d40a458 14/24: Log debug messages through eglot--debug |
Date: |
Sat, 26 May 2018 14:31:16 -0400 (EDT) |
branch: externals/eglot
commit d40a458c48be89f1ff56adb6fe0462080180fb4e
Author: Josh Elsasser <address@hidden>
Commit: Josh Elsasser <address@hidden>
Log debug messages through eglot--debug
* eglot.el (eglot--async-request, eglot--process-sentinel):
(eglot--call-deferred): Use eglot--debug to log messages to
the server events buffer.
(eglot--server-receive): Demote "Notification unimplemented"
message on missing handlers to a pure debug message.
---
eglot.el | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/eglot.el b/eglot.el
index 467e524..55fa406 100644
--- a/eglot.el
+++ b/eglot.el
@@ -432,7 +432,7 @@ INTERACTIVE is t if called interactively."
(defun eglot--process-sentinel (proc change)
"Called when PROC undergoes CHANGE."
(let ((server (process-get proc 'eglot-server)))
- (eglot--log-event server `(:message "Process state changed" :change
,change))
+ (eglot--debug server "Process state changed: %s" change)
(when (not (process-live-p proc))
(with-current-buffer (eglot-events-buffer server)
(let ((inhibit-read-only t))
@@ -597,8 +597,7 @@ originated."
(condition-case-unless-debug _err
(apply #'eglot-handle-notification server method params)
(cl-no-applicable-method
- (eglot--log-event
- server '(:error `(:message "Notification unimplemented"))))))
+ (eglot--debug server "Notification unimplemented: %s"
method))))
(continuations
(cancel-timer (cl-third continuations))
(remhash id (eglot--pending-continuations server))
@@ -638,7 +637,7 @@ originated."
(defun eglot--call-deferred (server)
"Call SERVER's deferred actions, who may again defer themselves."
(when-let ((actions (hash-table-values (eglot--deferred-actions server))))
- (eglot--log-event server `(:running-deferred ,(length actions)))
+ (eglot--debug server "running %d deferred actions" (length actions))
(mapc #'funcall (mapcar #'car actions))))
(cl-defmacro eglot--lambda (cl-lambda-list &body body)
@@ -682,7 +681,7 @@ TIMER)."
(when existing (setq existing (cadr existing)))
(if (eglot-server-ready-p server deferred)
(remhash (list deferred buf) (eglot--deferred-actions server))
- (eglot--log-event server `(:deferring ,method :id ,id :params
,params))
+ (eglot--debug server "deferring %s (id %s)" method id)
(let* ((buf (current-buffer)) (point (point))
(later (lambda ()
(when (buffer-live-p buf)
@@ -704,8 +703,7 @@ TIMER)."
(puthash id
(list (or success-fn
(eglot--lambda (&rest _ignored)
- (eglot--log-event
- server (eglot--obj :message "success ignored" :id
id))))
+ (eglot--debug server "%s success ignored (id %s)"
method id)))
(or error-fn
(eglot--lambda (&key code message &allow-other-keys)
(setf (eglot--status server) `(,message t))
- [elpa] externals/eglot updated (24877ae -> 897cbc3), João Távora, 2018/05/26
- [elpa] externals/eglot d673cf7 07/24: Increase test timeout in hopes of convincing Travis CI, João Távora, 2018/05/26
- [elpa] externals/eglot 89baadf 05/24: Fix indentation broken by the defclass monster commit, João Távora, 2018/05/26
- [elpa] externals/eglot 1ef8228 01/24: Introduce eglot-handle-request and eglot-handle-notification as API, João Távora, 2018/05/26
- [elpa] externals/eglot 3a1ff72 04/24: Introduce new API methods for experimental clients to use, João Távora, 2018/05/26
- [elpa] externals/eglot 9c87771 12/24: Introduce eglot--debug for unimportant messages, João Távora, 2018/05/26
- [elpa] externals/eglot 8d4c2c3 13/24: Demote unvisited diagnostics logging to debug level, João Távora, 2018/05/26
- [elpa] externals/eglot 85c5353 11/24: Add cquery support for C/C++ projects, João Távora, 2018/05/26
- [elpa] externals/eglot d40a458 14/24: Log debug messages through eglot--debug,
João Távora <=
- [elpa] externals/eglot 17a3257 03/24: Do Rust's RLS hack properly with new class-based API, João Távora, 2018/05/26
- [elpa] externals/eglot 3aa2958 06/24: Add a complex RLS test, João Távora, 2018/05/26
- [elpa] externals/eglot 07078da 08/24: Rework eglot-tests.el for better debuggability, João Távora, 2018/05/26
- [elpa] externals/eglot 0462130 15/24: New RLS tests, João Távora, 2018/05/26
- [elpa] externals/eglot e1d7ff3 09/24: Disable file-watching tests on Travis, João Távora, 2018/05/26
- [elpa] externals/eglot c8e7ab0 16/24: Don't rely on Flymake's idle timer for textDocument/didChange, João Távora, 2018/05/26
- [elpa] externals/eglot 99ca690 17/24: Simpify eglot--server-receive, João Távora, 2018/05/26
- [elpa] externals/eglot 1b5ed29 21/24: Really ensure eglot--shutdown deletes a process completely, João Távora, 2018/05/26
- [elpa] externals/eglot 897cbc3 24/24: * eglot.el (Version): Bump to 0.5, João Távora, 2018/05/26
- [elpa] externals/eglot ec10de2 23/24: Another unstable test on Travis, João Távora, 2018/05/26