mirror of
https://github.com/jiriks74/presence.nvim
synced 2025-06-17 19:08:57 +02:00
parent
080d24394b
commit
a68355145c
2 changed files with 5 additions and 6 deletions
lua/lib
|
@ -21,7 +21,7 @@ for i = 1, #Log.levels do
|
|||
|
||||
Log[level] = function(self, message)
|
||||
-- Skip if log level is not set or the log is below the configured or default level
|
||||
if not self.level or self.codes[level] < self.codes[self.level] then
|
||||
if not self.level or self.codes[level] < self.codes[self.level] or type(message) ~= "string" then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue