Better logging

This commit is contained in:
Chomp 2021-10-12 23:19:50 +01:00
parent 3fcc776e3f
commit fa6104a453

View File

@ -49,7 +49,7 @@ namespace MarketPriceLookup.Common.Helpers
{ {
//oh no //oh no
var existingItem = priceFile[bsgId]; var existingItem = priceFile[bsgId];
LoggingHelpers.LogToConsole($"Item already exists: {bsgId} {name}. item that already exists: {existingItem.TemplateId} {existingItem.Name}"); LoggingHelpers.LogError($"Item already exists: {bsgId} {name}. item that already exists: {existingItem.TemplateId} {existingItem.Name}");
} }
else else
{ {
@ -64,6 +64,7 @@ namespace MarketPriceLookup.Common.Helpers
//Currency = currency, //Currency = currency,
TemplateId = bsgId TemplateId = bsgId
}); });
LoggingHelpers.LogSuccess($"Adding item: {bsgId} {name}");
} }
} }