LOG: fix the default syslog filter (#734984)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
53bf56ff16
commit
949dacab66
31
0001-LOG-fix-the-default-syslog-filter.patch
Normal file
31
0001-LOG-fix-the-default-syslog-filter.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 9df0c323981d8e42e02ef1a215ce2fc6927c057e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Angus Salkeld <asalkeld@redhat.com>
|
||||||
|
Date: Thu, 1 Sep 2011 13:49:48 +1000
|
||||||
|
Subject: [PATCH] LOG: fix the default syslog filter
|
||||||
|
|
||||||
|
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
|
||||||
|
---
|
||||||
|
lib/log.c | 4 ++--
|
||||||
|
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/log.c b/lib/log.c
|
||||||
|
index d931249..2997eac 100644
|
||||||
|
--- a/lib/log.c
|
||||||
|
+++ b/lib/log.c
|
||||||
|
@@ -627,11 +627,11 @@ qb_log_init(const char *name, int32_t facility, uint8_t priority)
|
||||||
|
snprintf(conf[QB_LOG_BLACKBOX].name, PATH_MAX, "%s-blackbox", name);
|
||||||
|
|
||||||
|
logger_inited = QB_TRUE;
|
||||||
|
+ (void)qb_log_syslog_open(&conf[QB_LOG_SYSLOG]);
|
||||||
|
+ _log_target_state_set(&conf[QB_LOG_SYSLOG], QB_LOG_STATE_ENABLED);
|
||||||
|
(void)qb_log_filter_ctl(QB_LOG_SYSLOG, QB_LOG_FILTER_ADD,
|
||||||
|
QB_LOG_FILTER_FILE, "*", priority);
|
||||||
|
|
||||||
|
- (void)qb_log_syslog_open(&conf[QB_LOG_SYSLOG]);
|
||||||
|
- _log_target_state_set(&conf[QB_LOG_SYSLOG], QB_LOG_STATE_ENABLED);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
--
|
||||||
|
1.7.6.1
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
Name: libqb
|
Name: libqb
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: An IPC library for high performance servers
|
Summary: An IPC library for high performance servers
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -9,6 +9,8 @@ URL: http://www.libqb.org
|
|||||||
Source0: https://fedorahosted.org/releases/q/u/quarterback/%{name}-%{version}.tar.gz
|
Source0: https://fedorahosted.org/releases/q/u/quarterback/%{name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
Patch1: 0001-LOG-fix-the-default-syslog-filter.patch
|
||||||
|
|
||||||
BuildRequires: libtool doxygen procps check-devel
|
BuildRequires: libtool doxygen procps check-devel
|
||||||
|
|
||||||
#Requires: <nothing>
|
#Requires: <nothing>
|
||||||
@ -20,6 +22,8 @@ Initially these are IPC and poll.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -63,6 +67,9 @@ developing applications that use %{name}.
|
|||||||
%{_mandir}/man3/qb*3*
|
%{_mandir}/man3/qb*3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 1 2011 Angus Salkeld <asalkeld@redhat.com> - 0.6.0-2
|
||||||
|
- LOG: fix the default syslog filter
|
||||||
|
|
||||||
* Tue Aug 30 2011 Angus Salkeld <asalkeld@redhat.com> - 0.6.0-1
|
* Tue Aug 30 2011 Angus Salkeld <asalkeld@redhat.com> - 0.6.0-1
|
||||||
- Rebased to 0.6.0 which includes (#734457):
|
- Rebased to 0.6.0 which includes (#734457):
|
||||||
- Add a stop watch
|
- Add a stop watch
|
||||||
|
Loading…
Reference in New Issue
Block a user