mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2026-01-31 13:34:52 +01:00
remove logging
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user