more consistent logging

This commit is contained in:
Lilian Jónsdóttir 2020-10-10 13:03:33 -07:00
parent 60386fad4e
commit 272a7be414

View file

@ -53,7 +53,7 @@ end
this.isCityCell = function(internalCellId, externalCellId) this.isCityCell = function(internalCellId, externalCellId)
-- easy mode -- easy mode
if string.match(internalCellId, externalCellId) then if string.match(internalCellId, externalCellId) then
log(common.logLevels.large, "[CHECKS] easy mode city: %s in %s", internalCellId, externalCellId) log(common.logLevels.large, "[CHECKS] Easy mode city: %s in %s", internalCellId, externalCellId)
return true return true
end end
@ -63,12 +63,12 @@ this.isCityCell = function(internalCellId, externalCellId)
local _, _, externalCity = string.find(externalCellId, cityMatch) local _, _, externalCity = string.find(externalCellId, cityMatch)
if externalCity and externalCity == internalCity then if externalCity and externalCity == internalCity then
log(common.logLevels.large, "[CHECKS] hard mode city: %s in %s, %s == %s", internalCellId, externalCellId, log(common.logLevels.large, "[CHECKS] Hard mode city: %s in %s, %s == %s", internalCellId, externalCellId,
externalCity, internalCity) externalCity, internalCity)
return true return true
end end
log(common.logLevels.large, "[CHECKS] hard mode not city: %s not in %s, %s ~= %s or both are nil", internalCellId, log(common.logLevels.large, "[CHECKS] Hard mode not city: %s not in %s, %s ~= %s or both are nil", internalCellId,
externalCellId, externalCity, internalCity) externalCellId, externalCity, internalCity)
return false return false
end end