Logger
This commit is contained in:
parent
63188f98bb
commit
16d9fe3b60
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -13,4 +13,9 @@
|
|||
<p>
|
||||
<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>
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue