Add logging lib
This commit is contained in:
parent
e6f9148865
commit
4bd0de2e8d
|
@ -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"
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue