File tree 2 files changed +2
-2
lines changed
main/java/com/cloudbees/syslog
test/java/com/cloudbees/syslog
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ public String toRfc3164SyslogMessage() {
341
341
*/
342
342
public void toRfc3164SyslogMessage (Writer out ) throws IOException {
343
343
344
- int pri = facility .numericalCode () + severity .numericalCode ();
344
+ int pri = facility .numericalCode () * 8 + severity .numericalCode ();
345
345
346
346
out .write ('<' );
347
347
out .write (Integer .toString (pri ));
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public void testRfc3164Format() throws Exception {
111
111
.withMsg ("a syslog message" );
112
112
113
113
String actual = message .toRfc3164SyslogMessage ();
114
- String expected = "<7 >Dec 05 10:30:05 myserver.example.com my_app: a syslog message" ;
114
+ String expected = "<14 >Dec 05 10:30:05 myserver.example.com my_app: a syslog message" ;
115
115
116
116
assertThat (actual , is (expected ));
117
117
You can’t perform that action at this time.
0 commit comments