xbps-*: do not log to console with syslog enabled. Close #123

This commit is contained in:
Juan RP 2015-10-29 07:16:49 +01:00
parent fa7d8bdfc5
commit 637c087173
4 changed files with 8 additions and 3 deletions

5
NEWS
View File

@ -1,5 +1,10 @@
xbps-0.48 (???):
* xbps-{install,reconfigure,remove}(1): do not log to console when the
syslog option (xbps.d(5)) is enabled. Messages are send to stderr/stdout,
so that logging to the console duplicates them. Close #123
https://github.com/voidlinux/xbps/issues/123
* xbps-fbulk(1): now comes with a manual page for the section 1.
* libxbps: implemented reverse conflicts. That means that just a single pkg

View File

@ -42,7 +42,7 @@ state_cb(const struct xbps_state_cb_data *xscd, void *cbdata _unused)
if ((xscd->xhp->flags & XBPS_FLAG_DISABLE_SYSLOG) == 0) {
slog = true;
openlog("xbps-install", LOG_CONS, LOG_USER);
openlog("xbps-install", 0, LOG_USER);
}
switch (xscd->state) {

View File

@ -58,7 +58,7 @@ state_cb(const struct xbps_state_cb_data *xscd, void *cbd _unused)
if ((xscd->xhp->flags & XBPS_FLAG_DISABLE_SYSLOG) == 0) {
slog = true;
openlog("xbps-reconfigure", LOG_CONS, LOG_USER);
openlog("xbps-reconfigure", 0, LOG_USER);
}
switch (xscd->state) {

View File

@ -70,7 +70,7 @@ state_cb_rm(const struct xbps_state_cb_data *xscd, void *cbdata _unused)
if ((xscd->xhp->flags & XBPS_FLAG_DISABLE_SYSLOG) == 0) {
slog = true;
openlog("xbps-remove", LOG_CONS, LOG_USER);
openlog("xbps-remove", 0, LOG_USER);
}
switch (xscd->state) {