Skip to content

Commit

Permalink
Add support for syslog facility in pgqd
Browse files Browse the repository at this point in the history
Add support for defining the syslog facility we want pgqd to
log to in the ini file, since this is supported in libusual.
  • Loading branch information
piffio committed Jul 4, 2014
1 parent a0f3c0e commit e9d8960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/pgqd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Switches:
# log into syslog
#syslog = 1
#syslog_ident = pgqd
#syslog_facility = local0

## optional timeouts ##

Expand Down
1 change: 1 addition & 0 deletions sql/ticker/pgqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ static const struct CfKey conf_params[] = {
CF_REL("database_list", CF_STR, database_list, 0, NULL),
CF_ABS("syslog", CF_INT, cf_syslog, 0, "1"),
CF_ABS("syslog_ident", CF_STR, cf_syslog_ident, 0, "pgqd"),
CF_ABS("syslog_facility", CF_STR, cf_syslog_facility, 0, "daemon"),
CF_REL("check_period", CF_TIME_DOUBLE, check_period, 0, "60"),
CF_REL("maint_period", CF_TIME_DOUBLE, maint_period, 0, "120"),
CF_REL("retry_period", CF_TIME_DOUBLE, retry_period, 0, "30"),
Expand Down

0 comments on commit e9d8960

Please sign in to comment.