remove logging

This commit is contained in:
Kukks
2023-07-04 14:49:13 +02:00
parent 2b16ef4697
commit 82ce25de8c
2 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@
<PropertyGroup>
<Product>LN Prism</Product>
<Description>Automated value splits for lightning.</Description>
<Version>1.1.2</Version>
<Version>1.1.3</Version>
</PropertyGroup>
<!-- Plugin development properties -->
<PropertyGroup>

View File

@@ -16,6 +16,7 @@
@inject LinkGenerator LinkGenerator
@inject IHttpContextAccessor HttpContextAccessor
@inject ILogger<PrismEdit> Logger
@implements IDisposable
@if (Loading)
{
@@ -114,9 +115,6 @@ else
{
if (firstRender)
{
try
{
Logger.LogDebug("Loading prism settings");
PayoutProcessorLink = LinkGenerator.GetUriByAction(HttpContextAccessor.HttpContext, "ConfigureStorePayoutProcessors", "UIPayoutProcessors", new {StoreId});
LNAddressLink = LinkGenerator.GetUriByAction(HttpContextAccessor.HttpContext, "EditLightningAddress", "UILNURL", new {StoreId});
@@ -142,7 +140,6 @@ else
await Task.WhenAll(tasks);
Settings = await fetchSettings;
Users = await fetchLnAddresses;
Logger.LogInformation(JObject.FromObject(Settings).ToString());
EditContext = new EditContext(Settings);
MessageStore = new ValidationMessageStore(EditContext);
EditContext.OnValidationRequested += Validate;
@@ -151,11 +148,7 @@ else
NoPayoutProcessors = PayoutProcessorFactories.Any(factory => factory.GetSupportedPaymentMethods().Contains(pmi)) && !(await fetchProcessors).Any();
Loading = false;
await InvokeAsync(StateHasChanged);
}
catch (Exception e)
{
Logger.LogError(e, "Error while loading sat breaker settings");
}
}
await base.OnAfterRenderAsync(firstRender);
}
@@ -305,4 +298,11 @@ else
}
}
public void Dispose()
{
EditContext.OnValidationRequested -= Validate;
EditContext.OnFieldChanged -= FieldChanged;
SatBreaker.PrismUpdated -= SatBreakerOnPrismUpdated;
}
}