Improved logging

This commit is contained in:
Chomp
2025-04-09 17:20:24 +01:00
parent 92ce6adc6d
commit f104ab1417
2 changed files with 2 additions and 2 deletions
@@ -153,7 +153,7 @@ public class PostDbLoadService(
foreach (var customAchievement in _databaseService.GetCustomAchievements()) {
if (achievements.Exists((a) => a.Id == customAchievement.Id))
{
_logger.Warning($"Unable to add custom achievement as id: ${customAchievement.Id} already exists");
_logger.Warning($"Unable to add custom achievement as id: {customAchievement.Id} already exists");
continue;
}
+1 -1
View File
@@ -219,7 +219,7 @@ public class ModValidator(
protected bool IsModCompatibleWithSpt(PackageJsonData mod)
{
var sptVersion = ProgramStatics.SPT_VERSION() ?? sptConfig.SptVersion;
var modName = $"{mod.Author}-${mod.Name}";
var modName = $"{mod.Author}-{mod.Name}";
// Error and prevent loading if sptVersion property is not a valid semver string
if (!(semVer.IsValid(mod.SptVersion) || semVer.IsValidRange(mod.SptVersion)))