Remove debug logging, its scaring too many people

This commit is contained in:
Dev 2024-02-07 18:01:00 +00:00
parent 57855fd316
commit 4e20ca6744

View File

@ -563,8 +563,6 @@ export class FenceService
if (itemPrice > priceLimitRouble) if (itemPrice > priceLimitRouble)
{ {
// Too expensive, try again // Too expensive, try again
this.logger.warning(`Blocked ${rootItemDb._name}, price: ${itemPrice} limit: ${priceLimitRouble}`);
continue; continue;
} }
} }
@ -621,12 +619,9 @@ export class FenceService
* this.itemHelper.getItemQualityModifierForOfferItems(presetWithChildrenClone); * this.itemHelper.getItemQualityModifierForOfferItems(presetWithChildrenClone);
if (priceLimitRouble) if (priceLimitRouble)
{ {
// Get new price with random mods now removed
if (itemPrice > priceLimitRouble) if (itemPrice > priceLimitRouble)
{ {
// Too expensive, try again // Too expensive, try again
this.logger.warning(`Blocked ${rootItemDb._name}, price: ${itemPrice} limit: ${priceLimitRouble}`);
continue; continue;
} }
} }
@ -640,6 +635,7 @@ export class FenceService
assorts.items.push(...presetWithChildrenClone); assorts.items.push(...presetWithChildrenClone);
// Set assort price
// Must be careful to use correct id as the item has had its IDs regenerated // Must be careful to use correct id as the item has had its IDs regenerated
assorts.barter_scheme[presetWithChildrenClone[0]._id] = [[{ assorts.barter_scheme[presetWithChildrenClone[0]._id] = [[{
_tpl: "5449016a4bdc2d6f028b456f", _tpl: "5449016a4bdc2d6f028b456f",