fixed debugging check

This commit is contained in:
CWX
2025-02-01 19:16:21 +00:00
parent 06bf154a7a
commit 53e30c56e9
+6 -1
View File
@@ -6,6 +6,7 @@ using Core.Models.Enums;
using Core.Models.Utils;
using Core.Utils.Cloners;
using SptCommon.Annotations;
using LogLevel = Core.Models.Spt.Logging.LogLevel;
namespace Core.Services;
@@ -117,7 +118,11 @@ public class RagfairTaxService(
}
var taxValue = Math.Round(discountedTax.Value * itemComissionMult);
_logger.Debug("Tax Calculated to be: {taxValue}");
if (_logger.IsLogEnabled(LogLevel.Debug))
{
_logger.Debug($"Tax Calculated to be: {taxValue}");
}
return taxValue;
}