mirror of
https://github.com/gophernicus/gophernicus.git
synced 2024-09-22 04:35:56 -04:00
Merge pull request #108 from augfab/fix/106
Fix part of issue #106 (option -d)
This commit is contained in:
commit
d7c297ae5f
@ -196,9 +196,7 @@ Disable execution of gophermaps and scripts.
|
|||||||
Disable HTTP response to HTTP GET and POST requests.
|
Disable HTTP response to HTTP GET and POST requests.
|
||||||
.It Fl d
|
.It Fl d
|
||||||
Print debug output in
|
Print debug output in
|
||||||
.Xr syslog 3
|
.Xr syslog 3 .
|
||||||
and
|
|
||||||
.Pa /server-status .
|
|
||||||
When
|
When
|
||||||
.Fl ns
|
.Fl ns
|
||||||
(disable
|
(disable
|
||||||
|
@ -27,9 +27,7 @@ void log_init(int enable, int debug)
|
|||||||
|
|
||||||
_enable = enable;
|
_enable = enable;
|
||||||
|
|
||||||
openlog(PROGNAME,
|
openlog(PROGNAME, LOG_PID, LOG_DAEMON);
|
||||||
LOG_PID | (debug ? LOG_PERROR : 0),
|
|
||||||
LOG_DAEMON);
|
|
||||||
|
|
||||||
setlogmask(_LOG_UPTO(debug ? LOG_DEBUG : LOG_INFO));
|
setlogmask(_LOG_UPTO(debug ? LOG_DEBUG : LOG_INFO));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user