From fa6501f87041ca3d3a239988d4b1ae03d7442700 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 13 Nov 2020 12:35:26 +0200 Subject: refactor: split obnam's bindings, functions for clarity The old subplot/obnam.{yaml,py} were starting to get large enough that it was hard to understand them. Also, were partly overlapping in functionality with runcmd. --- src/bin/obnam-server.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bin/obnam-server.rs') diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs index 4e53953..520d6a9 100644 --- a/src/bin/obnam-server.rs +++ b/src/bin/obnam-server.rs @@ -32,7 +32,8 @@ async fn main() -> anyhow::Result<()> { let index = warp::any().map(move || Arc::clone(&index)); info!("Obnam server starting up"); - debug!("Configuration: {:?}", config_bare); + debug!("opt: {:#?}", opt); + debug!("Configuration: {:#?}", config_bare); let create = warp::post() .and(warp::path("chunks")) @@ -65,6 +66,7 @@ async fn main() -> anyhow::Result<()> { let log = warp::log("obnam"); let webroot = create.or(fetch).or(search).or(delete).with(log); + debug!("starting warp"); warp::serve(webroot) // .tls() // .key_path(config_bare.tls_key) -- cgit v1.2.1