Skip to content

Commit 92cd43f

Browse files
committed
Map "info" level to journald "info" priority
1 parent 63ce858 commit 92cd43f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tracing-journald/src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ mod socket;
6464
///
6565
/// - `ERROR` => Error (3)
6666
/// - `WARN` => Warning (4)
67-
/// - `INFO` => Notice (5)
68-
/// - `DEBUG` => Informational (6)
67+
/// - `INFO` => Informational (6)
68+
/// - `DEBUG` => Debug (7)
6969
/// - `TRACE` => Debug (7)
7070
///
7171
/// The standard journald `CODE_LINE` and `CODE_FILE` fields are automatically emitted. A `TARGET`
@@ -344,9 +344,8 @@ fn put_priority(buf: &mut Vec<u8>, meta: &Metadata) {
344344
match *meta.level() {
345345
Level::ERROR => b"3",
346346
Level::WARN => b"4",
347-
Level::INFO => b"5",
348-
Level::DEBUG => b"6",
349-
Level::TRACE => b"7",
347+
Level::INFO => b"6",
348+
Level::DEBUG | Level::TRACE => b"7",
350349
},
351350
);
352351
}

0 commit comments

Comments
 (0)