Fixed missing % char in logging

This commit is contained in:
djbadders 2021-02-08 18:58:29 +00:00
parent 012ad0e8f2
commit cd551ef8da
1 changed files with 2 additions and 2 deletions

View File

@ -1650,7 +1650,7 @@ namespace Core.Main
foreach (var marketTrend in excludedMarkets) foreach (var marketTrend in excludedMarkets)
{ {
this.Log.DoLogInfo(String.Format("SMS Off Trigger for '{0}' is ignoring {1} for exceeding TrendThreshold {2}% with {3} on {4}", marketSetting.SettingName, marketTrend.Market, (double)trendThreshold.TrendThreshold, Math.Round(marketTrend.TrendChange, 3, MidpointRounding.ToEven), offTrigger.MarketTrendName)); this.Log.DoLogInfo(String.Format("SMS Off Trigger for '{0}' is ignoring {1} for exceeding TrendThreshold {2}% with {3}% on {4}", marketSetting.SettingName, marketTrend.Market, (double)trendThreshold.TrendThreshold, Math.Round(marketTrend.TrendChange, 3, MidpointRounding.ToEven), offTrigger.MarketTrendName));
} }
var includedMarkets = from m in marketTrendChanges var includedMarkets = from m in marketTrendChanges
@ -1864,7 +1864,7 @@ namespace Core.Main
foreach (var marketTrend in excludedMarkets) foreach (var marketTrend in excludedMarkets)
{ {
this.Log.DoLogInfo(String.Format("SMS Trigger for '{0}' is ignoring {1} for exceeding TrendThreshold {2}% with {3} on {4}", marketSetting.SettingName, marketTrend.Market, (double)trendThreshold.TrendThreshold, Math.Round(marketTrend.TrendChange, 3, MidpointRounding.ToEven), trigger.MarketTrendName)); this.Log.DoLogInfo(String.Format("SMS Trigger for '{0}' is ignoring {1} for exceeding TrendThreshold {2}% with {3}% on {4}", marketSetting.SettingName, marketTrend.Market, (double)trendThreshold.TrendThreshold, Math.Round(marketTrend.TrendChange, 3, MidpointRounding.ToEven), trigger.MarketTrendName));
} }
var includedMarkets = from m in marketTrendChanges var includedMarkets = from m in marketTrendChanges