diff options
author | softprops <d.tangren@gmail.com> | 2016-01-03 21:54:17 -0500 |
---|---|---|
committer | softprops <d.tangren@gmail.com> | 2016-01-03 21:54:17 -0500 |
commit | 49b5b4fd76cb2641caed877fc95a73368451b3af (patch) | |
tree | fc13170c7c2d217b9dcd60ddb4969442a9f87323 /examples | |
parent | ad205ad14f859b2d4a07d31ed1d31b2f87a68f4d (diff) |
add debug logging
Diffstat (limited to 'examples')
-rw-r--r-- | examples/containers.rs | 2 | ||||
-rw-r--r-- | examples/images.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/containers.rs b/examples/containers.rs index 60990a4..9853062 100644 --- a/examples/containers.rs +++ b/examples/containers.rs @@ -1,8 +1,10 @@ extern crate shiplift; +extern crate env_logger; use shiplift::Docker; fn main() { + env_logger::init().unwrap(); let docker = Docker::new(); for c in docker.containers(). list(&Default::default()).unwrap() { diff --git a/examples/images.rs b/examples/images.rs index b2576b3..8a13243 100644 --- a/examples/images.rs +++ b/examples/images.rs @@ -1,8 +1,10 @@ extern crate shiplift; +extern crate env_logger; use shiplift::Docker; fn main() { + env_logger::init().unwrap(); let docker = Docker::new(); for i in docker.images(). list(&Default::default()).unwrap() { |