Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
22b77e8b
Commit
22b77e8b
authored
May 14, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishevent: added config param syslog.ident
parent
02ffd1ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
config.c
bin/varnishevent/config.c
+2
-0
varnishevent.c
bin/varnishevent/varnishevent.c
+1
-1
varnishevent.h
bin/varnishevent/varnishevent.h
+1
-0
No files found.
bin/varnishevent/config.c
View file @
22b77e8b
...
...
@@ -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'
;
...
...
bin/varnishevent/varnishevent.c
View file @
22b77e8b
...
...
@@ -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
)
...
...
bin/varnishevent/varnishevent.h
View file @
22b77e8b
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment