4165d6699a
related: rhbz#2133815 fixed possible traceback on SIGHUP resolves: rhbz#2169712 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
54 lines
2.4 KiB
Diff
54 lines
2.4 KiB
Diff
From 0b96f270b8c97b4a4fc0ef85a08363a6a9d76bd6 Mon Sep 17 00:00:00 2001
|
|
From: liuzhilin <liuzhilin@uniontech.com>
|
|
Date: Mon, 13 Feb 2023 10:44:34 +0800
|
|
Subject: [PATCH] fix log error
|
|
|
|
---
|
|
tuned/daemon/application.py | 2 +-
|
|
tuned/exports/dbus_exporter.py | 2 +-
|
|
tuned/utils/global_config.py | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/tuned/daemon/application.py b/tuned/daemon/application.py
|
|
index 6ca662b..5f203b1 100644
|
|
--- a/tuned/daemon/application.py
|
|
+++ b/tuned/daemon/application.py
|
|
@@ -211,7 +211,7 @@ class Application(object):
|
|
if daemon:
|
|
self.config.set(consts.CFG_DAEMON, True)
|
|
if not self.config.get_bool(consts.CFG_DAEMON, consts.CFG_DEF_DAEMON):
|
|
- log.warn("Using one shot no deamon mode, most of the functionality will be not available, it can be changed in global config")
|
|
+ log.warn("Using one shot no daemon mode, most of the functionality will be not available, it can be changed in global config")
|
|
result = self._controller.run()
|
|
if self.config.get_bool(consts.CFG_DAEMON, consts.CFG_DEF_DAEMON):
|
|
exports.stop()
|
|
diff --git a/tuned/exports/dbus_exporter.py b/tuned/exports/dbus_exporter.py
|
|
index f49ce5f..8073b49 100644
|
|
--- a/tuned/exports/dbus_exporter.py
|
|
+++ b/tuned/exports/dbus_exporter.py
|
|
@@ -132,7 +132,7 @@ class DBusExporter(interfaces.ExporterInterface):
|
|
def wrapper(owner, *args, **kwargs):
|
|
action_id = consts.NAMESPACE + "." + method.__name__
|
|
caller = args[-1]
|
|
- log.debug("checking authorization for for action '%s' requested by caller '%s'" % (action_id, caller))
|
|
+ log.debug("checking authorization for action '%s' requested by caller '%s'" % (action_id, caller))
|
|
ret = self._polkit.check_authorization(caller, action_id)
|
|
args_copy = args
|
|
if ret == 1:
|
|
diff --git a/tuned/utils/global_config.py b/tuned/utils/global_config.py
|
|
index 909be1e..5593fff 100644
|
|
--- a/tuned/utils/global_config.py
|
|
+++ b/tuned/utils/global_config.py
|
|
@@ -19,7 +19,7 @@ class GlobalConfig():
|
|
def get_global_config_spec():
|
|
"""
|
|
Easy validation mimicking configobj
|
|
- Returns two dicts, firts with default values (default None)
|
|
+ Returns two dicts, first with default values (default None)
|
|
global_default[consts.CFG_SOMETHING] = consts.CFG_DEF_SOMETHING or None
|
|
second with configobj function for value type (default "get" for string, others eg getboolean, getint)
|
|
global_function[consts.CFG_SOMETHING] = consts.CFG_FUNC_SOMETHING or get
|
|
--
|
|
2.39.1
|
|
|