Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Aug 11, 2020

Motivation:

swift-log 1.3.0 introduced a new concepct: the source of a log. This
identifies the creator of the emitted log, typically the module or
system that emitted the log.

The default value is currently (meant to be) the module name. This is
found by parsing the '#file' to find the directory the file is
contained in. However, this isn't always the module.

Modifications:

  • Capture the log source in tests
  • Validate the source in test tear down
  • Fix up incorrect sources

Result:

  • gRPC more uniformly emits a useful log source

Motivation:

swift-log 1.3.0 introduced a new concepct: the source of a log. This
identifies the creator of the emitted log, typically the module or
system that emitted the log.

The default value is currently (meant to be) the module name. This is
found by parsing the '#file' to find the directory the file is
contained in. However, this isn't always the module.

Modifications:

- Capture the log source in tests
- Validate the source in test tear down
- Fix up incorrect sources

Result:

- gRPC more uniformly emits a useful log source
@glbrntt glbrntt requested a review from Lukasa August 11, 2020 09:07
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Aug 11, 2020
@glbrntt glbrntt merged commit 723dcc0 into grpc:main Aug 11, 2020
@glbrntt glbrntt deleted the gb-log-source branch August 11, 2020 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants