Add logging lib

This commit is contained in:
Alex Wright 2020-02-23 20:04:07 +01:00
parent e6f9148865
commit 4bd0de2e8d
2 changed files with 7 additions and 0 deletions

View File

@ -18,3 +18,5 @@ biscuit = "0.3.1"
ring = "0.16.5"
num = "0.2"
openssl = "0.10.28"
env_logger = "0.7.1"
log = "0.4.8"

View File

@ -5,6 +5,9 @@ extern crate hyper;
extern crate ldap3;
extern crate tokio;
#[macro_use] extern crate log;
use log::Level;
#[macro_use]
extern crate serde_derive;
@ -244,6 +247,8 @@ fn router_service() -> Result<RouterService, std::io::Error> {
}
fn main() {
env_logger::init();
let addr_str = match env::var("LISTEN_ADDR") {
Ok(addr) => addr,
_ => "0.0.0.0:3000".to_string(),