From bc0c945be9a76613ee89ce94e9b979b9ac0bf373 Mon Sep 17 00:00:00 2001 From: necrashter Date: Sat, 23 Apr 2022 16:02:26 +0300 Subject: Echo network info --- src/routes.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/routes.rs b/src/routes.rs index 9afe0ac..9eadbea 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -4,10 +4,12 @@ use crate::custom_filters; use crate::handlers; use crate::Db; use warp::{Filter, filters::BoxedFilter, Rejection, Reply}; +use log::{info}; /// Every route combined for a single network pub fn network(db: Db) -> BoxedFilter<(impl Reply,)> { let url_prefix = db.config.url_prefix.clone(); + info!("{} will be served at endpoint /{}", db.config.name, url_prefix); let root = if url_prefix.is_empty() { // warp::path does not like empty url_prefix // We need to handle this case separately -- cgit v1.2.3-70-g09d2