Skip to content

tracing: Simplify trace initialization (for #1642)#1688

Merged
olix0r merged 2 commits intoeliza/log-streaming-demofrom
ver/log-build-smpfy
May 20, 2022
Merged

tracing: Simplify trace initialization (for #1642)#1688
olix0r merged 2 commits intoeliza/log-streaming-demofrom
ver/log-build-smpfy

Conversation

@olix0r
Copy link
Member

@olix0r olix0r commented May 20, 2022

While reviewing #1642, I found myself wanting clearer documentation
about what is being initilalized. This change attempts to reorganize the
builder for clarity.

Signed-off-by: Oliver Gould [email protected]

While reviewing #1642, I found myself wanting clearer documentation
about what is being initilalized. This change attempts to reorganize the
builder for clarity.

Signed-off-by: Oliver Gould <[email protected]>
@olix0r olix0r requested a review from a team as a code owner May 20, 2022 17:54
Copy link
Contributor

@hawkw hawkw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, this is definitely more readable, thanks!

Comment on lines +67 to +72
filter: std::env::var(ENV_LOG_LEVEL)
.ok()
.unwrap_or_else(|| DEFAULT_LOG_LEVEL.to_string()),
format: std::env::var(ENV_LOG_FORMAT)
.ok()
.unwrap_or_else(|| DEFAULT_LOG_FORMAT.to_string()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@olix0r olix0r merged commit 2350e83 into eliza/log-streaming-demo May 20, 2022
@olix0r olix0r deleted the ver/log-build-smpfy branch May 20, 2022 19:03
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.

2 participants