Skip to content

Commit 9718f94

Browse files
committed
Improve log functions
1 parent 149db9f commit 9718f94

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

lsp-dart-dap-devtools.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
(defun lsp-dart-dap-devtools-log (msg &rest args)
4747
"Custom logger for MSG and ARGS."
48-
(lsp-dart-project-custom-log "[DEVTOOLS]" msg args))
48+
(apply #'lsp-dart-project-custom-log "[DEVTOOLS]" msg args))
4949

5050
(cl-defmethod dap-handle-event ((_event (eql dart.debuggerUris)) _session params)
5151
"Handle debugger uris EVENT for SESSION with PARAMS."

lsp-dart-dap.el

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ Required to support 'Inspect Widget'."
8787

8888
(defun lsp-dart-dap-log (msg &rest args)
8989
"Log MSG with ARGS adding lsp-dart-dap prefix."
90-
(lsp-dart-project-log (concat
91-
(propertize "[DAP] "
92-
'face 'font-lock-function-name-face)
93-
msg
94-
args)))
90+
(apply #'lsp-dart-project-custom-log "[DAP]" msg args))
9591

9692
(defun lsp-dart-dap--setup-extension ()
9793
"Setup dart debugger extension to run `lsp-dart-dap-dart-debugger-program`."

lsp-dart-flutter-daemon.el

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@
3939

4040
(defun lsp-dart-flutter-daemon-log (level msg &rest args)
4141
"Log for LEVEL, MSG with ARGS adding lsp-dart-flutter-daemon prefix."
42-
(lsp-dart-project-log (concat
43-
(propertize (concat "[FLUTTER " (upcase level) "] ")
44-
'face 'font-lock-function-name-face)
45-
msg
46-
args)))
42+
(apply #'lsp-dart-project-custom-log (concat "[FLUTTER " (upcase level) "] ")
43+
msg
44+
args))
4745

4846
(defun lsp-dart-flutter-daemon--generate-command-id ()
4947
"Generate a random command id."

0 commit comments

Comments
 (0)