milo logging

This commit is contained in:
kepler155c@gmail.com
2019-03-16 21:02:49 -04:00
parent ed0dfcd473
commit ebd0896ee9
3 changed files with 19 additions and 8 deletions

View File

@@ -55,7 +55,10 @@ function ImportTask:cycle(context)
return node.adapter.getItemMeta(slotNo)
end)
if item and matchesFilter(item) then
context.storage:import(node, slotNo, item.count, item)
if context.storage:import(node, slotNo, item.count, item) ~= item.count then
_G._debug('IMPORTER warning: Failed to import %s(%d) %s[%d]',
node.displayName or node.name, slotNo, item.name, item.count)
end
end
end