summaryrefslogtreecommitdiff
path: root/src/bin/obnam-server.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-11-13 12:35:26 +0200
committerLars Wirzenius <liw@liw.fi>2020-11-13 13:19:02 +0200
commitfa6501f87041ca3d3a239988d4b1ae03d7442700 (patch)
tree1beed5eb44e1939c2702179896cceb52004c16c9 /src/bin/obnam-server.rs
parent2f129dee8841f0007977ba80b1518e94b728d94a (diff)
downloadobnam2-fa6501f87041ca3d3a239988d4b1ae03d7442700.tar.gz
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.
Diffstat (limited to 'src/bin/obnam-server.rs')
-rw-r--r--src/bin/obnam-server.rs4
1 files changed, 3 insertions, 1 deletions
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)