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

log config file reload as info #176

Open
wants to merge 1 commit into
base: next100
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fn get_new_config(
match config::load_config(&file) {
Ok(mut conf) => match config::validate_config(&mut conf, Some(&file)) {
Ok(()) => {
debug!("Reload using config file");
info!("Reload using config file");
Ok(conf)
}
Err(err) => {
Expand Down Expand Up @@ -239,7 +239,7 @@ fn run(

loop {
if signal_reload.load(Ordering::Relaxed) {
debug!("Reloading configuration...");
info!("Reloading configuration...");
signal_reload.store(false, Ordering::Relaxed);
let new_config = get_new_config(&config_path, &new_config_shared);

Expand Down Expand Up @@ -723,7 +723,7 @@ fn main_process() -> i32 {

#[cfg(any(target_os = "linux", target_os = "macos"))]
let _signal = unsafe {
signal_hook::low_level::register(signal_hook::consts::SIGHUP, || debug!("Received SIGHUP"))
signal_hook::low_level::register(signal_hook::consts::SIGHUP, || info!("Received SIGHUP"))
};

#[cfg(target_os = "windows")]
Expand Down