diff options
author | tummychow <tummychow@users.noreply.github.com> | 2018-02-15 18:04:21 -0800 |
---|---|---|
committer | tummychow <tummychow@users.noreply.github.com> | 2018-02-15 18:04:21 -0800 |
commit | d001e298580d6a1c366824795daa225efad54036 (patch) | |
tree | 659a0e2407e2a41b4cbed528e946f77785ed8a27 /src/main.rs | |
parent | 653326db26fd06bdbb862d080a5e1b8167c82f14 (diff) |
wait for async logger to drop
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
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); } } |