Commit 22b77e8b authored by Geoff Simmons's avatar Geoff Simmons

varnishevent: added config param syslog.ident

parent 02ffd1ab
......@@ -113,6 +113,7 @@ CONF_Add(const char *lval, const char *rval)
confString("bformat", bformat);
confString("zformat", zformat);
confString("output.file", output_file);
confString("syslog.ident", syslog_ident);
confUnsigned("max.reclen", max_reclen);
confUnsigned("max.headers", max_headers);
......@@ -182,6 +183,7 @@ CONF_Init(void)
strcpy(config.pid_file, DEFAULT_PID_FILE);
strcpy(config.cformat, DEFAULT_CFORMAT);
strcpy(config.syslog_ident, "varnishevent");
config.bformat[0] = '\0';
config.zformat[0] = '\0';
config.varnish_name[0] = '\0';
......
......@@ -678,7 +678,7 @@ main(int argc, char *argv[])
if (a_flag)
config.append = 1;
if (LOG_Open("varnishevent") != 0) {
if (LOG_Open(config.syslog_ident) != 0) {
exit(EXIT_FAILURE);
}
if (g_flag)
......
......@@ -151,6 +151,7 @@ struct config {
int syslog_facility;
char syslog_facility_name[BUFSIZ];
char syslog_ident[BUFSIZ];
unsigned monitor_interval;
/* varnishd param shm_reclen */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment