Skip to content

Conversation

@fbrv
Copy link
Contributor

@fbrv fbrv commented Aug 1, 2024

tbd: log rotation policy, simplify #47

@fbrv fbrv mentioned this pull request Aug 1, 2024
@fbrv fbrv changed the title wip: log rotation log rotation Aug 2, 2024
Copy link
Collaborator

@ltitanb ltitanb left a comment

Choose a reason for hiding this comment

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

just a couple of small changes needed, then gtg. Also make sure to test this locally to make sure everything works as expected

Comment on lines 3 to 4
pub const BUILDER_LOG_NAME: &str = "builder_log";
pub const CUSTOM_BOOST_NAME: &str = "custom_boost";
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's remove these as they are just examples. For external modules, we should use the module id from the module config. Let's move PBS_MODULE_NAME and SIGNER_MODULE_NAME to config/log.rs


[dependencies]
commit-boost = { path = "../../bin" }
cb-common = {path="../../crates/common"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

module should only ever import commit-boost and no "internal" crates, so we re-export everything needed in commit_boost::prelude::*. In this case seems that we only used it for the BUILDER_LOG_NAME. Given that this is just an example of a module, we should have them hardcoded in the repo, let's use the module id from the config, which all modules have

@ltitanb ltitanb merged commit 550bed5 into main Aug 5, 2024
@ltitanb ltitanb deleted the fb/log-rotation branch August 5, 2024 15:00
@fbrv fbrv mentioned this pull request Aug 5, 2024
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