Skip to content

Conversation

@hikinggrass
Copy link
Member

Add an additional RuntimeSettings ctor to everestpy that accepts a MQTTSettings object

This allows eg. everest-testing to directly set the required MQTT connectivity information without having to specify environment variables.

Move init of logging into Module ctor since the module id is only available there

@hikinggrass hikinggrass requested a review from a-w50 January 8, 2025 10:20
Comment on lines +26 to +27
Everest::Logging::init(session.get_logging_config_file().string(), module_id);

Copy link
Member Author

Choose a reason for hiding this comment

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

This is debatable, since logging should not happen before this is called. There's one edge-case where logging might happen earlier: in the deprecated RuntimeSession ctor ManagerSettings could log if something goes wrong

@hikinggrass hikinggrass removed the request for review from a-w50 February 5, 2025 13:50
@hikinggrass hikinggrass marked this pull request as draft February 5, 2025 13:50
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