aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-08-07 09:08:23 +0000
committerOmar Polo <op@omarpolo.com>2023-08-07 09:08:23 +0000
commit3a93c90445bc762cbef00d130feffd9a7f6b083f (patch)
tree07771f7309b5ef9c555cb5f099d4e56518bdf82d /parse.y
parenta250aff257374bdd931e44efef4fc72618e0363d (diff)
sort logopt
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y14
1 files changed, 7 insertions, 7 deletions
diff --git a/parse.y b/parse.y
index a47f1f1..cd3510d 100644
--- a/parse.y
+++ b/parse.y
@@ -260,13 +260,7 @@ logopts : /* empty */
| logopts logopt optnl
;
-logopt : SYSLOG OFF {
- conf->log_syslog = 0;
- }
- | SYSLOG {
- conf->log_syslog = 1;
- }
- | ACCESS string {
+logopt : ACCESS string {
free(conf->log_access);
conf->log_access = $2;
}
@@ -282,6 +276,12 @@ logopt : SYSLOG OFF {
| STYLE LEGACY {
conf->log_format = LOG_FORMAT_LEGACY;
}
+ | SYSLOG OFF {
+ conf->log_syslog = 0;
+ }
+ | SYSLOG {
+ conf->log_syslog = 1;
+ }
;
vhost : SERVER string {