commit
1c8a4b1c8a
|
@ -2323,8 +2323,6 @@ namespace Core.Main
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Log.DoLogInfo("DCA ProfitPercentage Label:" + ProfitPercentageLabel);
|
|
||||||
|
|
||||||
// Get configured DCA triggers
|
// Get configured DCA triggers
|
||||||
for (int dca = 1; dca <= maxDCALevel; dca++)
|
for (int dca = 1; dca <= maxDCALevel; dca++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,4 +13,9 @@
|
||||||
<p>
|
<p>
|
||||||
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
||||||
</p>
|
</p>
|
||||||
|
}
|
||||||
|
|
||||||
|
@if (Model.Exception != null) {
|
||||||
|
<h2>@Model.Exception.Error.Message</h2>
|
||||||
|
<p>@Model.Exception.Error.StackTrace</p>
|
||||||
}
|
}
|
|
@ -7,16 +7,22 @@ namespace Monitor.Pages
|
||||||
public class ErrorModel : PageModel
|
public class ErrorModel : PageModel
|
||||||
{
|
{
|
||||||
public string RequestId { get; set; }
|
public string RequestId { get; set; }
|
||||||
|
public IExceptionHandlerFeature Exception = null;
|
||||||
|
|
||||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||||
|
|
||||||
public void OnGet()
|
public void OnGet()
|
||||||
{
|
{
|
||||||
|
Exception = HttpContext.Features.Get<IExceptionHandlerFeature>();
|
||||||
|
|
||||||
var exceptionFeature = HttpContext.Features.Get<IExceptionHandlerPathFeature>();
|
var exceptionFeature = HttpContext.Features.Get<IExceptionHandlerPathFeature>();
|
||||||
|
|
||||||
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
||||||
|
|
||||||
Logger.WriteException(exceptionFeature.Error, "An error occurred whilst requesting " + exceptionFeature.Path);
|
string errorString = exceptionFeature.Error.ToString();
|
||||||
|
if (!(errorString.Contains("is being used") || errorString.Contains("an unexpected character was encountered"))) {
|
||||||
|
Logger.WriteException(exceptionFeature.Error, "An error occurred whilst requesting " + exceptionFeature.Path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue