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

Use DI logger factory in worker service and DI clients #119

Merged
merged 3 commits into from
Jul 25, 2023

Conversation

cretz
Copy link
Member

@cretz cretz commented Jul 25, 2023

What was changed

Made DI logger factory be used for worker (and created client) regardless of existing client or client options. Previously we were checking client options logger factory is not null which is never possible. The client options has a default logger factory always set so it's unreasonable to try to tell when it's unset. We feel this is a better option than making client logger factory nullable project-wide.

Checklist

  1. Closes [Bug] DI worker service not using obtained logger factory #116

@cretz cretz requested a review from a team July 25, 2023 12:13
@cretz cretz changed the title Use DI logger factory in worker service Use DI logger factory in worker service and DI clients Jul 25, 2023
@cretz cretz merged commit 612d4ca into temporalio:main Jul 25, 2023
7 checks passed
@cretz cretz deleted the logger-factory-di branch July 25, 2023 19:38
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.

[Bug] DI worker service not using obtained logger factory
2 participants