Skip to content

Commit

Permalink
change ignore message level to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jan 17, 2024
1 parent 4cbabcb commit 637b795
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/dyn_menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ end
-- script message: get <keyword> <src>
mp.register_script_message('get', function(keyword, src)
if not src or src == '' then
msg.warn('get: ignored message with empty src')
msg.debug('get: ignored message with empty src')
return
end

Expand All @@ -476,14 +476,14 @@ end)
mp.register_script_message('update', function(keyword, json)
local menu = dyn_menus[keyword]
if not menu then
msg.warn('update: ignored message with invalid keyword:', keyword)
msg.debug('update: ignored message with invalid keyword:', keyword)
return
end

local data, err = utils.parse_json(json)
if err then msg.error('update: failed to parse json:', err) end
if not data or next(data) == nil then
msg.warn('update: ignored message with invalid json:', json)
msg.debug('update: ignored message with invalid json:', json)
return
end

Expand Down

0 comments on commit 637b795

Please sign in to comment.