HomeFreeBSD

Cleanup zed logging

Description

Cleanup zed logging

This is a set of minor cleanup changes related to zed logging:

  • Remove the program identity prefix from messages written to stderr since systemd already prepends this output with the program name.
  • Replace the copy of the program identity string with a ptr reference.
  • Replace "pid" with "PID" for consistency in comments & strings.
  • Rename the zed_log.c struct _ctx component "level" to "priority".
  • Add the LOG_PID option for messages written to syslog.

Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2252

Details

Provenance
Chris Dunlap <cdunlap@llnl.gov>Authored on Aug 28 2014, 9:39 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 2 2014, 9:18 PM
Parents
rG5a8855b716ad: Fix race condition with zed pidfile creation
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8125fb71905c: Cleanup zed logging (authored by Chris Dunlap <cdunlap@llnl.gov>).Sep 2 2014, 9:18 PM