1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-16 06:25:23 +00:00

Merge pull request #108 from augfab/fix/106

Fix part of issue #106 (option -d)
This commit is contained in:
fosslinux 2024-02-27 11:16:32 +00:00 committed by GitHub
commit d7c297ae5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -196,9 +196,7 @@ Disable execution of gophermaps and scripts.
Disable HTTP response to HTTP GET and POST requests.
.It Fl d
Print debug output in
.Xr syslog 3
and
.Pa /server-status .
.Xr syslog 3 .
When
.Fl ns
(disable

View File

@ -27,9 +27,7 @@ void log_init(int enable, int debug)
_enable = enable;
openlog(PROGNAME,
LOG_PID | (debug ? LOG_PERROR : 0),
LOG_DAEMON);
openlog(PROGNAME, LOG_PID, LOG_DAEMON);
setlogmask(_LOG_UPTO(debug ? LOG_DEBUG : LOG_INFO));
}