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

Introduce daemonbase and use it for logging. #94

Merged
merged 6 commits into from
Mar 20, 2024
Merged

Introduce daemonbase and use it for logging. #94

merged 6 commits into from
Mar 20, 2024

Conversation

partim
Copy link
Member

@partim partim commented Nov 20, 2023

This PR switches the logging configuration to use the new daemonbase crate.

@partim partim requested a review from a team January 26, 2024 10:51
@ximon18
Copy link
Member

ximon18 commented Jan 26, 2024

Is it wise to make main depend on a Git branch of daemonbase? That would block you from releasing until daemonbase itself is released to crates.io, right?

@partim
Copy link
Member Author

partim commented Jan 26, 2024

A daemonbase release should probably happen before merging, indeed.

src/log.rs Show resolved Hide resolved
@partim partim requested a review from ximon18 March 8, 2024 11:14
src/lib.rs Outdated Show resolved Hide resolved
manager: &mut Manager,
) -> Result<Self, Failed> {
let conf_path = cur_dir.join(matches.value_of("config").unwrap());
let conf = match ConfigFile::load(&conf_path) {
let args = Args::from_arg_matches(
Copy link
Member

Choose a reason for hiding this comment

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

It's not clear to me why cur_dir is no longer needed here.

Copy link
Member Author

@partim partim Mar 18, 2024

Choose a reason for hiding this comment

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

Expansion of relative paths is now done transparently in daemonbase.

@partim partim merged commit e4a8cd9 into main Mar 20, 2024
9 checks passed
@partim partim deleted the daemonbase branch March 20, 2024 13:13
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