-/* $OpenBSD: httpd.c,v 1.10 2014/07/26 09:59:14 reyk Exp $ */
+/* $OpenBSD: httpd.c,v 1.11 2014/08/01 21:59:56 reyk Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
if (parse_config(env->sc_conffile, env) == -1)
exit(1);
- if (debug)
- env->sc_opts |= HTTPD_OPT_LOGUPDATE;
-
if (geteuid())
errx(1, "need root privileges");
-.\" $OpenBSD: httpd.conf.5,v 1.13 2014/08/01 21:51:02 doug Exp $
+.\" $OpenBSD: httpd.conf.5,v 1.14 2014/08/01 21:59:56 reyk Exp $
.\"
.\" Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
.\"
Here are the settings that can be set globally:
.Bl -tag -width Ds
.It Xo
-.Ic log
-.Pq Ic updates Ns | Ns Ic all
-.Xc
-Set logging verbosity.
.It Ic prefork Ar number
Run the specified number of server processes.
This increases the performance and prevents delays when connecting
-/* $OpenBSD: httpd.h,v 1.28 2014/08/01 21:51:02 doug Exp $ */
+/* $OpenBSD: httpd.h,v 1.29 2014/08/01 21:59:56 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
#define HTTPD_OPT_VERBOSE 0x01
#define HTTPD_OPT_NOACTION 0x04
-#define HTTPD_OPT_LOGUPDATE 0x08
-#define HTTPD_OPT_LOGNOTIFY 0x10
-#define HTTPD_OPT_LOGALL 0x18
/* control.c */
int control_init(struct privsep *, struct control_sock *);
-/* $OpenBSD: parse.y,v 1.14 2014/08/01 21:51:02 doug Exp $ */
+/* $OpenBSD: parse.y,v 1.15 2014/08/01 21:59:56 reyk Exp $ */
/*
* Copyright (c) 2007 - 2014 Reyk Floeter <reyk@openbsd.org>
%}
-%token ALL AUTO DIRECTORY FCGI INDEX LISTEN LOCATION LOG NO ON PORT
-%token PREFORK ROOT SERVER SOCKET TYPES UPDATES VERBOSE
+%token AUTO DIRECTORY FCGI INDEX LISTEN LOCATION LOG NO ON PORT
+%token PREFORK ROOT SERVER SOCKET TYPES
%token ERROR INCLUDE COMMON COMBINED
%token <v.string> STRING
%token <v.number> NUMBER
-%type <v.number> loglevel
%type <v.port> port
%%
}
;
-main : LOG loglevel {
- if (loadcfg)
- break;
- conf->sc_opts |= $2;
- }
- | PREFORK NUMBER {
+main : PREFORK NUMBER {
if (loadcfg)
break;
if ($2 <= 0 || $2 > SERVER_MAXPROC) {
}
;
-loglevel : UPDATES { $$ = HTTPD_OPT_LOGUPDATE; }
- | ALL { $$ = HTTPD_OPT_LOGALL; }
- ;
-
comma : ','
| nl
| /* empty */
{
/* this has to be sorted always */
static const struct keywords keywords[] = {
- { "all", ALL },
{ "auto", AUTO },
{ "combined", COMBINED },
{ "common", COMMON },
{ "root", ROOT },
{ "server", SERVER },
{ "socket", SOCKET },
- { "types", TYPES },
- { "updates", UPDATES }
+ { "types", TYPES }
};
const struct keywords *p;
-/* $OpenBSD: server.c,v 1.19 2014/08/01 08:34:46 florian Exp $ */
+/* $OpenBSD: server.c,v 1.20 2014/08/01 21:59:56 reyk Exp $ */
/*
* Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org>
if (clt->clt_srvbev != NULL)
bufferevent_disable(clt->clt_srvbev, EV_READ|EV_WRITE);
- if ((env->sc_opts & HTTPD_OPT_LOGUPDATE) && msg != NULL) {
+ if (msg != NULL) {
memset(&ibuf, 0, sizeof(ibuf));
memset(&obuf, 0, sizeof(obuf));
(void)print_host(&clt->clt_ss, ibuf, sizeof(ibuf));