Skip to content

Commit bc7991b

Browse files
Fix SyslogBuilder::pid() being ignored.
1 parent 7629fa1 commit bc7991b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ impl SyslogBuilder {
626626
Err(_) => None
627627
}
628628
},
629-
pid: process::id() as i32,
629+
pid: self.pid.unwrap_or_else(|| process::id() as i32),
630630
process: match self.process {
631631
Some(process) => process,
632632
None => {

0 commit comments

Comments
 (0)