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

Change watchdog to a single binary #10

Merged
merged 15 commits into from
Feb 6, 2020
Merged

Conversation

kanav99
Copy link
Member

@kanav99 kanav99 commented Feb 4, 2020

Requesting reviews @fristonio @vrongmeal

Using [geckodriver](https://hg.mozilla.org/mozilla-central/file/tip/testing/geckodriver) as a refernce,
this commit changes the code into a monolith binary. Imports are much easier to understand now.
This adds a new dependency `error-chain`. This package helps in easy error chaining and handling.
Traceback is so easy now. Also removing the logger in the coming patches because pam_exec gives
a simpler logging facility. No need of writing code for logging in rust.
src/init.rs Outdated
panic!("Watchdog: Couldn't open log file");
}
};
// pub fn init_logger(config: &Config) {
Copy link
Member

Choose a reason for hiding this comment

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

Why are these commented out?

Copy link
Member Author

Choose a reason for hiding this comment

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

I should delete them. Logging will be done directly from pam_exec itself.

Cargo.toml Outdated

[lib]
name = "common_lib"
Copy link
Member

Choose a reason for hiding this comment

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

Use lib instead of common_lib

@fristonio fristonio merged commit ab2bd85 into vrongmeal-notifier Feb 6, 2020
@fristonio fristonio deleted the monolith branch February 6, 2020 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.

3 participants