Logging improvements
This commit is contained in:
@@ -105,7 +105,7 @@ public class RepeatableQuestController(
|
||||
{
|
||||
// Unable to find quest being replaced
|
||||
var message =
|
||||
$"Unable to generate repeatable quest of type: {repeatableTypeLower} to replace trader: ${replacedQuestTraderId} quest: {changeRequest.QuestId}";
|
||||
$"Unable to generate repeatable quest of type: {repeatableTypeLower} to replace trader: {replacedQuestTraderId} quest: {changeRequest.QuestId}";
|
||||
_logger.Error(message);
|
||||
|
||||
return _httpResponseUtil.AppendErrorToOutput(output, message);
|
||||
|
||||
@@ -348,7 +348,7 @@ public class BotGeneratorHelper(
|
||||
);
|
||||
if (blockingItem is not null)
|
||||
{
|
||||
// this.logger.warning(`1 incompatibility found between - ${itemToEquip[1]._name} and ${blockingItem._name} - ${equipmentSlot}`);
|
||||
// this.logger.warning(`1 incompatibility found between - {itemToEquip[1]._name} and {blockingItem._name} - {equipmentSlot}`);
|
||||
|
||||
return new()
|
||||
{
|
||||
@@ -361,7 +361,7 @@ public class BotGeneratorHelper(
|
||||
blockingItem = templateItems.FirstOrDefault(x => x?.Properties?.ConflictingItems?.Contains(tplToCheck) ?? false);
|
||||
if (blockingItem is not null)
|
||||
{
|
||||
// this.logger.warning(`2 incompatibility found between - ${itemToEquip[1]._name} and ${blockingItem._props.Name} - ${equipmentSlot}`);
|
||||
// this.logger.warning(`2 incompatibility found between - {itemToEquip[1]._name} and {blockingItem._props.Name} - {equipmentSlot}`);
|
||||
return new ChooseRandomCompatibleModResult
|
||||
{
|
||||
Incompatible = true,
|
||||
@@ -439,7 +439,7 @@ public class BotGeneratorHelper(
|
||||
var blockingInventoryItem = itemsEquipped.FirstOrDefault((x) => itemToEquip.Properties.ConflictingItems?.Contains(x.Template) ?? false);
|
||||
if (blockingInventoryItem is not null)
|
||||
{
|
||||
// this.logger.warning(`3 incompatibility found between - ${itemToEquip[1]._name} and ${blockingInventoryItem._tpl} - ${equipmentSlot}`)
|
||||
// this.logger.warning(`3 incompatibility found between - {itemToEquip[1]._name} and {blockingInventoryItem._tpl} - {equipmentSlot}`)
|
||||
return new ChooseRandomCompatibleModResult
|
||||
{
|
||||
Incompatible = true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using SptCommon.Annotations;
|
||||
using SptCommon.Annotations;
|
||||
using Core.Models.Enums;
|
||||
using Core.Models.Spt.Config;
|
||||
using Core.Models.Utils;
|
||||
@@ -78,10 +78,10 @@ public class ConfigServer
|
||||
}
|
||||
|
||||
/** TODO: deal with this:
|
||||
this.logger.info(`Commit hash: ${
|
||||
this.logger.info(`Commit hash: {
|
||||
globalThis.G_COMMIT || "DEBUG"
|
||||
}`);
|
||||
this.logger.info(`Build date: ${
|
||||
this.logger.info(`Build date: {
|
||||
globalThis.G_BUILDTIME || "DEBUG"
|
||||
}`);
|
||||
**/
|
||||
|
||||
@@ -381,7 +381,7 @@ public class RagfairPriceService(
|
||||
)
|
||||
{
|
||||
// var itemDetails = this.itemHelper.getItem(itemTpl);
|
||||
// this.logger.debug(`item below handbook price ${itemDetails[1]._name} handbook: ${itemHandbookPrice} flea: ${itemPrice} ${priceDifferencePercent}%`);
|
||||
// this.logger.debug(`item below handbook price {itemDetails[1]._name} handbook: {itemHandbookPrice} flea: ${itemPrice} {priceDifferencePercent}%`);
|
||||
return Math.Round(itemHandbookPrice.Value * offerAdjustmentSettings.HandbookPriceMultiplier);
|
||||
}
|
||||
|
||||
@@ -486,8 +486,8 @@ public class RagfairPriceService(
|
||||
{
|
||||
_logger.Debug(
|
||||
nonDefaultPresets.Count == 1
|
||||
? $"Item Id: ${weapon.Template} has no default encyclopedia entry but only one preset: ({nonDefaultPresets[0].Name}), choosing preset: ({nonDefaultPresets[0].Name})"
|
||||
: $"Item Id: ${weapon.Template} has no default encyclopedia entry, choosing first preset(${nonDefaultPresets[0].Name}) of ${nonDefaultPresets.Count}"
|
||||
? $"Item Id: {weapon.Template} has no default encyclopedia entry but only one preset: ({nonDefaultPresets[0].Name}), choosing preset: ({nonDefaultPresets[0].Name})"
|
||||
: $"Item Id: {weapon.Template} has no default encyclopedia entry, choosing first preset({nonDefaultPresets[0].Name}) of {nonDefaultPresets.Count}"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ public class Watermark {
|
||||
var sptVersion = /*ProgramStatics.SPT_VERSION ||*/ sptConfig.SptVersion;
|
||||
var versionTag = /*ProgramStatics.DEBUG ? */
|
||||
$"{sptVersion} - BLEEDINGEDGE { /*ProgramStatics.COMMIT?.slice(0, 6) ?? */""}";
|
||||
//: `${sptVersion} - ${ProgramStatics.COMMIT?.slice(0, 6) ?? ""}`;
|
||||
//: `{sptVersion} - {ProgramStatics.COMMIT?.slice(0, 6) ?? ""}`;
|
||||
|
||||
return $"{sptConfig.ProjectName} {versionTag}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user