Skip to content

Commit

Permalink
Fixes incorrect flag masks when opening syslog
Browse files Browse the repository at this point in the history
Log lines should now correctly have a [pid]: element.
  • Loading branch information
Jonas Pfenniger committed Jul 10, 2013
1 parent 0744ee1 commit e639587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lines.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def prepare_syslog(app_name)
unless syslog.opened?
# Did you know ? app_name is detected by syslog if nil
syslog.open(app_name,
Syslog::LOG_PID & Syslog::LOG_CONS & Syslog::LOG_NDELAY,
Syslog::LOG_PID | Syslog::LOG_CONS | Syslog::LOG_NDELAY,
Syslog::LOG_USER)
end
end
Expand Down

0 comments on commit e639587

Please sign in to comment.