Skip to content

adjust env vars, add regex based level setting#64

Merged
frrist merged 1 commit intomasterfrom
frrist/envs-level
Sep 20, 2019
Merged

adjust env vars, add regex based level setting#64
frrist merged 1 commit intomasterfrom
frrist/envs-level

Conversation

@frrist
Copy link
Copy Markdown
Member

@frrist frrist commented Sep 19, 2019

62f287c contains api breaking changes, figured we might as well rip the rest of the bandages off.

loggerMutex.Lock()
defer loggerMutex.Unlock()
for name := range loggers {
if rem.MatchString(name) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want to know if the regex fails to match any of the subsystems?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good question. I would be willing to log an Info message for this case, since an error seems incorrect here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

on second thought the lack of match should be obvious by the logging output not changing.

@frrist frrist merged commit a609c1a into master Sep 20, 2019
@gammazero gammazero deleted the frrist/envs-level branch May 6, 2025 19:01
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.

3 participants