I missed some logs

This commit is contained in:
Lilian Jónsdóttir 2020-10-03 22:35:25 -07:00
parent 1ea4725d19
commit d8499db3e3
3 changed files with 5 additions and 5 deletions

View file

@ -18,7 +18,7 @@ this.calculateCellWorth = function(cell, proprietor)
end end
log(common.logLevels.medium, "[CELLEVAL] Calculated worth of %s for cell %s", worth, cell.id) log(common.logLevels.medium, "[CELLEVAL] Calculated worth of %s for cell %s", worth, cell.id)
log(common.logLevels.large, msg:sub(1, #msg - 2)) -- strip off last ", " log(common.logLevels.large, "[CELLEVAL] " .. msg:sub(1, #msg - 2)) -- strip off last ", "
return worth return worth
end end

View file

@ -139,7 +139,7 @@ this.isIgnoredNPC = function(npc)
-- LuaFormatter off -- LuaFormatter off
-- this just keeps getting uglier but it's debug logging so whatever I don't care -- this just keeps getting uglier but it's debug logging so whatever I don't care
log(common.logLevels.large, ("Checking NPC:%s (%s or %s): id blocked:%s, %s blocked:%s " .. log(common.logLevels.large, ("[CHECKS] Checking NPC:%s (%s or %s): id blocked:%s, %s blocked:%s " ..
"guard:%s dead:%s vampire:%s werewolf:%s dreamer:%s follower:%s hostile:%s %s%s"), "guard:%s dead:%s vampire:%s werewolf:%s dreamer:%s follower:%s hostile:%s %s%s"),
obj.name, npc.object.id, npc.object.baseObject and npc.object.baseObject.id or "nil", obj.name, npc.object.id, npc.object.baseObject and npc.object.baseObject.id or "nil",
config.ignored[obj.id:lower()], obj.sourceMod, config.ignored[obj.sourceMod:lower()], config.ignored[obj.id:lower()], obj.sourceMod, config.ignored[obj.sourceMod:lower()],
@ -248,7 +248,7 @@ this.isPublicHouse = function(cell)
for faction, info in pairs(npcs.factions) do for faction, info in pairs(npcs.factions) do
info.percentage = (info.total / npcs.total) * 100 info.percentage = (info.total / npcs.total) * 100
log(common.logLevels.large, log(common.logLevels.large,
"No NPCs of ignored class in %s, checking faction %s (ignored: %s, player joined: %s) with %s (%s%%) vs total %s", "[CHECKS] No NPCs of ignored class in %s, checking faction %s (ignored: %s, player joined: %s) with %s (%s%%) vs total %s",
cell.name, faction, config.ignored[faction], info.ref.playerJoined, info.total, info.percentage, cell.name, faction, config.ignored[faction], info.ref.playerJoined, info.total, info.percentage,
npcs.total) npcs.total)

View file

@ -36,7 +36,7 @@ local function checkEnteredNPCHome(cell)
local home = common.runtimeData.homes.byCell[cell.id] local home = common.runtimeData.homes.byCell[cell.id]
if home then if home then
local msg = string.format("Entering home of %s, %s", home.name, home.homeName) local msg = string.format("Entering home of %s, %s", home.name, home.homeName)
log(common.logLevels.small, msg) log(common.logLevels.small, "[MAIN] " .. msg)
-- message(msg) -- this one is mostly for debugging, so it doesn't need to be shown -- message(msg) -- this one is mostly for debugging, so it doesn't need to be shown
end end
end end
@ -57,7 +57,7 @@ local function checkEnteredPublicHouse(cell, city)
publicHouse.proprietor.object.class) publicHouse.proprietor.object.class)
end end
log(common.logLevels.small, msg) log(common.logLevels.small, "[MAIN] " .. msg)
message(msg) -- this one is more informative, and not entirely for debugging, and reminiscent of Daggerfall's messages message(msg) -- this one is more informative, and not entirely for debugging, and reminiscent of Daggerfall's messages
end end
end end