-
Couldn't load subscription status.
- Fork 20
Improve the logging config actor #1127
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
Conversation
|
Ready for review, but based on #1126. |
|
Also in preparation for a major revamp of the |
4116cf0 to
229fc95
Compare
Signed-off-by: Leandro Lucarella <[email protected]>
|
Ready for review and merging. |
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
This is just in case the parent class calls some abstract method that is implemented in the current class, in which case it could try to accesss the attributes that are not initialized yet. Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
We now have `frequenz.sdk.config.load_config()` for this. Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
We are not using the `.Schema` attribute from marshmallow_dataclass, so it is better to just stick to the standard `dataclass` decorator to make thing simpler. Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
When `dataclass` field have a default value, they are not required already, so the `required` field in the `metadata` is unnecessary. Signed-off-by: Leandro Lucarella <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just one comment in README.
RELEASE_NOTES.md
Outdated
| * The `load()` method was removed. Please use `frequenz.sdk.config.load_config()` instead. | ||
| * The class is now a standard `dataclass` instead of a `marshmallow_dataclass`. | ||
|
|
||
| - `LoggerConfig` is not a standard `dataclass` instead of a `marshmallow_dataclass`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LoggerConfigis now a standarddataclassinstead of amarshmallow_dataclass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be fixed in next PR
|
Oh, I was just fixing it :D |
nameargument toLoggingConfigUpdatingActorLoggingConfigUpdatingActorconstructorLogLevelLoggingConfig.loadmethoddataclassdecorator fromdataclasses__all__