aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-07-26 08:10:12 +0000
committerOmar Polo <op@omarpolo.com>2023-07-26 08:10:12 +0000
commit46bcc4ea95b03fe81ad361ee02bd021a7618e5a9 (patch)
tree16728cce2ffae1c408d6807303da4f9598894121 /parse.y
parentcba01a868748013f838c28ad8005c8377160c76f (diff)
add log syslog off; don't turn syslog off when log access is specified
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 5 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 83d0858..a47f1f1 100644
--- a/parse.y
+++ b/parse.y
@@ -260,9 +260,11 @@ logopts : /* empty */
| logopts logopt optnl
;
-logopt : SYSLOG {
- free(conf->log_access);
- conf->log_access = NULL;
+logopt : SYSLOG OFF {
+ conf->log_syslog = 0;
+ }
+ | SYSLOG {
+ conf->log_syslog = 1;
}
| ACCESS string {
free(conf->log_access);