Skip to content

Commit

Permalink
Add getter for GlobalLoggerGuard
Browse files Browse the repository at this point in the history
Resolves the comment in PR #11
  • Loading branch information
hskang9 committed Oct 24, 2019
1 parent c2c4978 commit 5bbcfe9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,13 @@ impl slog::Drain for NoGlobalLoggerSet {
/// This will `drop` any existing global logger.
#[must_use]
pub struct GlobalLoggerGuard {
pub canceled : bool,
canceled : bool,
}

impl GlobalLoggerGuard {
fn get_canceled(&self) -> bool {
return &self.canceled
}

fn new() -> Self {
GlobalLoggerGuard {
Expand Down

0 comments on commit 5bbcfe9

Please sign in to comment.