summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index c37059d..d298cb7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -74,6 +74,7 @@ pub struct State {
pub quic_endpoints: RwLock<Vec<quinn::Endpoint>>,
}
+/// a simple stupid reverse proxy
#[derive(Parser)]
struct Args {
/// Switch to specified user after loading configuration and certificates.
@@ -116,7 +117,7 @@ async fn main() -> anyhow::Result<()> {
watch_config(args.config.clone(), || async {
let config_package = ConfigPackage::new(&args.config)?;
cs_client_reload(&cs_path, config_package).await?;
- info!("Config updated");
+ info!("Remote configuration updated");
Ok(())
})
.await?;
@@ -124,10 +125,11 @@ async fn main() -> anyhow::Result<()> {
} else {
match cs_client_reload(&cs_path, config_package).await {
Ok(()) => {
+ info!("Remote configuration updated");
exit(0);
}
Err(e) => {
- eprintln!("Error: {e}");
+ error!("Error: {e}");
exit(1);
}
}
@@ -216,7 +218,7 @@ async fn main() -> anyhow::Result<()> {
ControlSocketRequest::Config(config_package),
)
.await?;
- info!("Config updated");
+ info!("Local configuration updated");
Ok(())
}
}),