This commit is contained in:
HojouFotytu 2019-11-15 12:18:43 +09:00
parent 63188f98bb
commit 16d9fe3b60
3 changed files with 8 additions and 2 deletions

View File

@ -2323,8 +2323,6 @@ namespace Core.Main
}
}
this.Log.DoLogInfo("DCA ProfitPercentage Label:" + ProfitPercentageLabel);
// Get configured DCA triggers
for (int dca = 1; dca <= maxDCALevel; dca++)
{

View File

@ -14,3 +14,8 @@
<strong>Request ID:</strong> <code>@Model.RequestId</code>
</p>
}
@if (Model.Exception != null) {
<h2>@Model.Exception.Error.Message</h2>
<p>@Model.Exception.Error.StackTrace</p>
}

View File

@ -7,11 +7,14 @@ namespace Monitor.Pages
public class ErrorModel : PageModel
{
public string RequestId { get; set; }
public IExceptionHandlerFeature Exception = null;
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
public void OnGet()
{
Exception = HttpContext.Features.Get<IExceptionHandlerFeature>();
var exceptionFeature = HttpContext.Features.Get<IExceptionHandlerPathFeature>();
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;