diff options
author | Alex Auvolat <alex@adnab.me> | 2022-02-22 15:25:13 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-03-14 10:53:51 +0100 |
commit | dc8d0496ccd1b577fe6c0a1c172a8794531fa0a6 (patch) | |
tree | 88255af0ffbc8d42e704d65cf03b64b57239bd84 /src/garage/server.rs | |
parent | d9a35359bf8903f37f5f7aa77421ed35b626e0af (diff) | |
download | garage-dc8d0496ccd1b577fe6c0a1c172a8794531fa0a6.tar.gz garage-dc8d0496ccd1b577fe6c0a1c172a8794531fa0a6.zip |
Refactoring: rename config files, make modifications less invasive
Diffstat (limited to 'src/garage/server.rs')
-rw-r--r-- | src/garage/server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs index b11f8417..1e276e9e 100644 --- a/src/garage/server.rs +++ b/src/garage/server.rs @@ -47,7 +47,7 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> { let garage = Garage::new(config.clone(), db, background); info!("Initialize tracing..."); - if let Some(export_to) = config.admin_api.otlp_export_traces_to { + if let Some(export_to) = config.admin.trace_sink { init_tracing(&export_to, garage.system.id)?; } @@ -70,7 +70,7 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> { info!("Configure and run admin web server..."); let admin_server = tokio::spawn( - admin_server_init.run(config.admin_api.bind_addr, wait_from(watch_cancel.clone())), + admin_server_init.run(config.admin.api_bind_addr, wait_from(watch_cancel.clone())), ); // Stuff runs |