[tuned/f17] Fixed error logging in tuned-adm
Jaroslav Škarvada
jskarvad at fedoraproject.org
Tue Feb 5 15:50:08 UTC 2013
commit 5fa8a4463a14399d98527552e1ffa7709c358f2b
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date: Tue Feb 5 16:50:03 2013 +0100
Fixed error logging in tuned-adm
Resolves: rhbz#907065
tuned-2.0.1-tuned-adm-no-log.patch | 11 +++++++++++
tuned.spec | 9 ++++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/tuned-2.0.1-tuned-adm-no-log.patch b/tuned-2.0.1-tuned-adm-no-log.patch
new file mode 100644
index 0000000..8832b97
--- /dev/null
+++ b/tuned-2.0.1-tuned-adm-no-log.patch
@@ -0,0 +1,11 @@
+--- a/tuned-adm.py
++++ b/tuned-adm.py
+@@ -125,7 +125,7 @@ class Tuned_adm:
+ with open("/etc/tuned/active_profile", "w") as f:
+ f.write(profile)
+ except (OSError,IOError) as e:
+- log.error("Cannot write profile into /etc/tuned/active_profile: %s" % (e))
++ self.error("Cannot write profile into /etc/tuned/active_profile: %s" % (e))
+ os.kill(pid, signal.SIGHUP)
+
+
diff --git a/tuned.spec b/tuned.spec
index 3c88e71..4579aec 100644
--- a/tuned.spec
+++ b/tuned.spec
@@ -1,7 +1,7 @@
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.0.1
-Release: 5%{?dist}
+Release: 6%{?dist}
License: GPLv2
# The source for this package was pulled from upstream git. Use the
# following commands to get the corresponding tarball:
@@ -14,6 +14,8 @@ Patch0: tuned-powertop2.patch
Patch1: tuned-2.0.1-powertop2tuned-fix.patch
# rhbz#890435
Patch2: tuned-2.0.1-cloexec.patch
+# rhbz#907065
+Patch3: tuned-2.0.1-tuned-adm-no-log.patch
URL: https://fedorahosted.org/tuned/
BuildArch: noarch
BuildRequires: python, systemd-units
@@ -53,6 +55,7 @@ It can be also used to fine tune your system for specific scenarios.
%patch0 -p1 -b .powertop2
%patch1 -p1 -b .powertop2tuned-fix
%patch2 -p1 -b .cloexec
+%patch3 -p1 -b .tuned-adm-no-log
%build
@@ -141,6 +144,10 @@ fi
%{_prefix}/lib/tuned/spindown-disk
%changelog
+* Tue Feb 5 2013 Jaroslav Škarvada <jskarvad at redhat.com> - 2.0.1-6
+- Fixed error logging in tuned-adm
+ Resolves: rhbz#907065
+
* Wed Jan 2 2013 Jaroslav Škarvada <jskarvad at redhat.com> - 2.0.1-5
- Fixed FD leaks on subprocesses (cloexec patch)
Resolves: rhbz#890435
More information about the scm-commits
mailing list