summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authortummychow <tummychow@users.noreply.github.com>2018-02-15 18:04:21 -0800
committertummychow <tummychow@users.noreply.github.com>2018-02-15 18:04:21 -0800
commitd001e298580d6a1c366824795daa225efad54036 (patch)
tree659a0e2407e2a41b4cbed528e946f77785ed8a27 /src/main.rs
parent653326db26fd06bdbb862d080a5e1b8167c82f14 (diff)
wait for async logger to drop
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index dbf6c4c..7ce96a7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -60,6 +60,8 @@ fn main() {
logger: &logger,
}) {
crit!(logger, "absorb failed"; "err" => e.description());
+ // wait for async logger to finish writing messages
+ drop(logger);
process::exit(1);
}
}