From 907a9d3b5882ec12b2c8c0563a7ed08be0edf022 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 20 Jun 2018 17:55:17 -0700 Subject: have fatcatd declare it's port on startup --- rust/src/bin/fatcatd.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rust') diff --git a/rust/src/bin/fatcatd.rs b/rust/src/bin/fatcatd.rs index 256027c8..4778df9e 100644 --- a/rust/src/bin/fatcatd.rs +++ b/rust/src/bin/fatcatd.rs @@ -70,6 +70,9 @@ fn main() { ))) } + let host_port = "localhost:9411"; + info!(logger, "Starting fatcatd API server on http://{}", &host_port); + let mut chain = Chain::new(LoggerMiddleware::new(router, logger, formatter)); // Auth stuff unused for now @@ -85,7 +88,7 @@ fn main() { } else { // Using HTTP Iron::new(chain) - .http("localhost:9411") + .http(host_port) .expect("Failed to start HTTP server"); } } -- cgit v1.2.3