xbps-*: do not log to console with syslog enabled. Close #123
This commit is contained in:
parent
fa7d8bdfc5
commit
637c087173
5
NEWS
5
NEWS
@ -1,5 +1,10 @@
|
|||||||
xbps-0.48 (???):
|
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.
|
* xbps-fbulk(1): now comes with a manual page for the section 1.
|
||||||
|
|
||||||
* libxbps: implemented reverse conflicts. That means that just a single pkg
|
* libxbps: implemented reverse conflicts. That means that just a single pkg
|
||||||
|
@ -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) {
|
if ((xscd->xhp->flags & XBPS_FLAG_DISABLE_SYSLOG) == 0) {
|
||||||
slog = true;
|
slog = true;
|
||||||
openlog("xbps-install", LOG_CONS, LOG_USER);
|
openlog("xbps-install", 0, LOG_USER);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (xscd->state) {
|
switch (xscd->state) {
|
||||||
|
@ -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) {
|
if ((xscd->xhp->flags & XBPS_FLAG_DISABLE_SYSLOG) == 0) {
|
||||||
slog = true;
|
slog = true;
|
||||||
openlog("xbps-reconfigure", LOG_CONS, LOG_USER);
|
openlog("xbps-reconfigure", 0, LOG_USER);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (xscd->state) {
|
switch (xscd->state) {
|
||||||
|
@ -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) {
|
if ((xscd->xhp->flags & XBPS_FLAG_DISABLE_SYSLOG) == 0) {
|
||||||
slog = true;
|
slog = true;
|
||||||
openlog("xbps-remove", LOG_CONS, LOG_USER);
|
openlog("xbps-remove", 0, LOG_USER);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (xscd->state) {
|
switch (xscd->state) {
|
||||||
|
Loading…
Reference in New Issue
Block a user