Skip to content

Commit

Permalink
Merge pull request #105 from mozilla/fix_gecko_log
Browse files Browse the repository at this point in the history
Gecko inits log as well, so we cannot hard fail.
  • Loading branch information
mergify[bot] authored Jul 30, 2019
2 parents 741d37b + 17e737d commit 8461616
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions neqo-common/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ pub fn init() {
record.args()
)
});
builder.init();
::log::log!(::log::Level::Info, "Logging initialized");
if let Err(e) = builder.try_init() {
::log::log!(::log::Level::Info, "Logging initialization error {:?}", e);
} else {
::log::log!(::log::Level::Info, "Logging initialized");
}
});
}

Expand Down

0 comments on commit 8461616

Please sign in to comment.