Skip to content

Commit

Permalink
Log: Hide *log-level* implementation detail
Browse files Browse the repository at this point in the history
Return the symbol that was used to set the log level, not the numeric
code it gets transformed into.
  • Loading branch information
sdilts committed Oct 15, 2023
1 parent 2f0e74b commit 962d171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/log.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ level is not high enough."
:error Something went wrong...
:fatal Bye bye compositor..."
(check-valid-log-level new-level)
(setf *log-level* (get-log-level-data new-level)))
(setf *log-level* (get-log-level-data new-level))
new-level)

(defun log-colored-p ()
cl-ansi-text:*enabled*)
Expand Down

0 comments on commit 962d171

Please sign in to comment.