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

SPT-1998 LoggerContext #121

Merged
merged 4 commits into from
Apr 16, 2024
Merged

SPT-1998 LoggerContext #121

merged 4 commits into from
Apr 16, 2024

Conversation

mrandrewsmith
Copy link
Collaborator

@mrandrewsmith mrandrewsmith commented Mar 20, 2024

What is done

  • Улучшены generic в протоколах
  • Убран базовый класс Node, протокол NodeProtocol переименован в Node
  • Создан LoggingContext для записи логов внутри нод

Так как для записи логов в async методах не используется Observer, который хранит логи, создал LoggingContext и перенес логику логов туда. В async методах нодов LoggingContext будет хранить логи с узлов, а LoggerNode разгребать его.

@mrandrewsmith mrandrewsmith self-assigned this Mar 20, 2024
@mrandrewsmith mrandrewsmith changed the title Spt 1998 logger SPT-1998 LoggerContext Mar 20, 2024
@mrandrewsmith mrandrewsmith force-pushed the SPT-1998-swift-concurrency branch from ad7b710 to 14f1f97 Compare March 20, 2024 09:46
@mrandrewsmith mrandrewsmith force-pushed the SPT-1998-logger branch 2 times, most recently from 504c200 to e0f5b89 Compare March 20, 2024 10:16
@mrandrewsmith mrandrewsmith force-pushed the SPT-1998-swift-concurrency branch from 546f421 to 66349e6 Compare March 20, 2024 10:20
@mrandrewsmith mrandrewsmith force-pushed the SPT-1998-swift-concurrency branch from 15362f8 to 9fdb6e5 Compare March 21, 2024 16:52
@mrandrewsmith mrandrewsmith force-pushed the SPT-1998-logger branch 2 times, most recently from d552c4d to b9f67bc Compare March 21, 2024 20:00
@mrandrewsmith mrandrewsmith force-pushed the SPT-1998-swift-concurrency branch from 90ce04e to ea17d96 Compare March 26, 2024 14:30
@mrandrewsmith mrandrewsmith force-pushed the SPT-1998-swift-concurrency branch from ea17d96 to 23875fe Compare March 26, 2024 14:38
NodeKit/CacheNode/FirstCachePolicyNode.swift Outdated Show resolved Hide resolved
NodeKit/Utils/Logging/LoggingContext.swift Outdated Show resolved Hide resolved
NodeKitTests/Utils/LoggingContextTests.swift Outdated Show resolved Hide resolved
@mrandrewsmith mrandrewsmith changed the base branch from SPT-1998-swift-concurrency to 5.0.0 April 16, 2024 10:01
@mrandrewsmith mrandrewsmith merged commit 49bb19a into 5.0.0 Apr 16, 2024
1 check passed
@mrandrewsmith mrandrewsmith deleted the SPT-1998-logger branch May 7, 2024 04:32
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