* lisp/jsonrpc.el (jsonrpc--debug): Use apply on format args list.

This commit is contained in:
Stefan Kangas 2022-01-13 01:01:48 +01:00
parent 097e0ee4a2
commit 9599b5923b

View file

@ -698,7 +698,9 @@ TIMEOUT is nil)."
(defun jsonrpc--debug (server format &rest args)
"Debug message for SERVER with FORMAT and ARGS."
(jsonrpc--log-event
server (if (stringp format)`(:message ,(format format args)) format)))
server (if (stringp format)
`(:message ,(apply #'format format args))
format)))
(defun jsonrpc--warn (format &rest args)
"Warning message with FORMAT and ARGS."