diff options
Diffstat (limited to 'wttrin-debug.el')
| -rw-r--r-- | wttrin-debug.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wttrin-debug.el b/wttrin-debug.el index dd08a5a..a0576a4 100644 --- a/wttrin-debug.el +++ b/wttrin-debug.el @@ -112,12 +112,12 @@ It creates the *wttrin-mode-debug* buffer with diagnostic information." (defun wttrin--debug-log (format-string &rest args) "Log a debug message if wttrin-debug is enabled. -FORMAT-STRING and ARGS are passed to `format'." +FORMAT-STRING and ARGS are passed to `format'. +Messages are stored in `wttrin--debug-log' for later review." (when wttrin-debug (let ((msg (apply #'format format-string args)) (timestamp (format-time-string "%H:%M:%S.%3N"))) - (push (cons timestamp msg) wttrin--debug-log) - (message "[wttrin-debug %s] %s" timestamp msg)))) + (push (cons timestamp msg) wttrin--debug-log)))) ;;;###autoload (defun wttrin-debug-clear-log () |
