Skip to content

Commit f13fc66

Browse files
committed
Add config log at startup
1 parent 8fe34f7 commit f13fc66

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

wait/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wait/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "wait"
3-
version = "2.2.0"
3+
version = "2.3.0"
44
authors = ["ufoscout <[email protected]>"]
55

66
[dependencies]
77

88
[dev-dependencies]
9-
time = "0.1.39"
9+
time = "0.1.40"
1010
atomic-counter = "0.1.0"

wait/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ pub struct Config {
1111

1212
pub fn wait(sleep: &sleeper::Sleeper, config: &Config, on_timeout : &mut FnMut() ) {
1313

14+
println!("Docker-compose-wait starting with configuration:");
15+
println!("------------------------------------------------");
16+
println!(" - Hosts to be waiting for: [{}]", config.hosts);
17+
println!(" - Timeout before failure: {} seconds ", config.timeout);
18+
println!(" - Sleeping time before checking for hosts availability: {} seconds", config.wait_before);
19+
println!(" - Sleeping time once all hosts are available: {} seconds", config.wait_after);
20+
println!("------------------------------------------------");
21+
1422
if config.wait_before > 0 {
1523
println!("Waiting {} seconds before checking for hosts availability", config.wait_before);
1624
sleep.sleep(config.wait_before);

0 commit comments

Comments
 (0)