When logging don't use `core.status_view` if not yet initialized
This commit is contained in:
parent
bc2f22e9e7
commit
96251bdbfa
|
@ -1197,7 +1197,9 @@ function core.custom_log(level, show, backtrace, fmt, ...)
|
||||||
local text = string.format(fmt, ...)
|
local text = string.format(fmt, ...)
|
||||||
if show then
|
if show then
|
||||||
local s = style.log[level]
|
local s = style.log[level]
|
||||||
core.status_view:show_message(s.icon, s.color, text)
|
if core.status_view then
|
||||||
|
core.status_view:show_message(s.icon, s.color, text)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local info = debug.getinfo(2, "Sl")
|
local info = debug.getinfo(2, "Sl")
|
||||||
|
|
Loading…
Reference in New Issue