Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logging leak #357

Merged
merged 9 commits into from
Dec 12, 2023
Merged

Fix logging leak #357

merged 9 commits into from
Dec 12, 2023

Conversation

Jossec101
Copy link
Contributor

Hotfix on thread leak, potentially due to a leak in the logger factory of gRPC.

…when no managed node is found

feat(JobTypes.cs): disallow concurrent execution of jobs to prevent potential conflicts
fix(NodeChannelSubscribeJob.cs): change NodeUpdateManagement to async to ensure proper execution order
refactor(ProcessNodeChannelAcceptorJob.cs): remove unnecessary loggerFactory creation
chore(NodeGuard.csproj): update package versions for better compatibility and performance
refactor(Withdrawals.razor): simplify JSON parsing and validation logic for better readability
refactor(Program.cs): use Serilog for logging, adjust thread pool concurrency, and set up loggerFactory for Quartz
feat(LightningClientService.cs): add logging for grpc channel creation for better debugging
chore(NodeGuard.Tests.csproj): update Grpc.Core.Api version and add Microsoft.Extensions.Logging.Configuration for testing
… setup due to redundancy

feat(LightningClientService.cs): add NullLogger for better logging
refactor(LightningClientService.cs): change CreateLightningClient method from static to instance for better encapsulation and testability
…educe code duplication

fix(SweepNodeWalletsJob.cs): replace direct instantiation of LightningClient with ILightningClientService.GetLightningClient to improve testability and maintainability
style(SweepNodeWalletsJob.cs): remove unnecessary loggerFactory variable and whitespace for cleaner code
RodriFS
RodriFS previously approved these changes Dec 12, 2023
AleksKSoftware and others added 2 commits December 12, 2023 21:08
* Node disable/enabled.

* Code improvements

* Removed unscheduled and interrupted job.

* Update src/NodeGuard.csproj

Co-authored-by: Rodrigo <[email protected]>

* Update src/Pages/Nodes.razor

Co-authored-by: Rodrigo <[email protected]>

* Fix a messsage of the toast.

* Added some improvements.

* Returned migration logic.

* Added migrations files.

* Redid migration and renamed field

---------

Co-authored-by: Rodrigo <[email protected]>
…when no managed node is found

feat(JobTypes.cs): disallow concurrent execution of jobs to prevent potential conflicts
fix(NodeChannelSubscribeJob.cs): change NodeUpdateManagement to async to ensure proper execution order
refactor(ProcessNodeChannelAcceptorJob.cs): remove unnecessary loggerFactory creation
chore(NodeGuard.csproj): update package versions for better compatibility and performance
refactor(Withdrawals.razor): simplify JSON parsing and validation logic for better readability
refactor(Program.cs): use Serilog for logging, adjust thread pool concurrency, and set up loggerFactory for Quartz
feat(LightningClientService.cs): add logging for grpc channel creation for better debugging
chore(NodeGuard.Tests.csproj): update Grpc.Core.Api version and add Microsoft.Extensions.Logging.Configuration for testing
… setup due to redundancy

feat(LightningClientService.cs): add NullLogger for better logging
refactor(LightningClientService.cs): change CreateLightningClient method from static to instance for better encapsulation and testability
…educe code duplication

fix(SweepNodeWalletsJob.cs): replace direct instantiation of LightningClient with ILightningClientService.GetLightningClient to improve testability and maintainability
style(SweepNodeWalletsJob.cs): remove unnecessary loggerFactory variable and whitespace for cleaner code
…fix-logging-leak

# Conflicts:
#	src/Helpers/JobTypes.cs
@Jossec101 Jossec101 merged commit 7d65c2b into main Dec 12, 2023
5 checks passed
@Jossec101 Jossec101 deleted the fix-logging-leak branch December 12, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants