Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "slog-syslog"
version = "0.13.0"
version = "0.13.1"
authors = ["Dawid Ciężarkiewicz <[email protected]>", "William Laeder <[email protected]" ]
description = "Syslog drain for slog-rs"
keywords = ["slog", "logging", "json", "log", "syslog"]
Expand Down
4 changes: 2 additions & 2 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ impl Drain for Streamer3164 {
type Ok = ();

fn log(&self, info: &Record, logger_values: &OwnedKVList) -> io::Result<()> {
if self.level > info.level() {
return Ok(())
if !info.level().is_at_least(self.level) {
return Ok(());
}
TL_BUF.with(|buf| {
let mut buf = buf.borrow_mut();
Expand Down