Blame SOURCES/0058-TOOLS-removed-unneeded-debug-message.patch

7500e1
From fbf33babe3fb52323f098aa300b51bf8fc5ee363 Mon Sep 17 00:00:00 2001
7500e1
From: Alexey Tikhonov <atikhono@redhat.com>
7500e1
Date: Wed, 19 May 2021 17:20:52 +0200
7500e1
Subject: [PATCH] TOOLS: removed unneeded debug message
7500e1
MIME-Version: 1.0
7500e1
Content-Type: text/plain; charset=UTF-8
7500e1
Content-Transfer-Encoding: 8bit
7500e1
7500e1
This message was logged before `sss_tool_init()` that sets debug level,
7500e1
thus ignoring configured debug level.
7500e1
7500e1
Since the same message is printed via `ERROR` on a next line, this log
7500e1
message doesn't add any information and can be simply removed.
7500e1
7500e1
Reviewed-by: Tomáš Halman <thalman@redhat.com>
7500e1
---
7500e1
 src/tools/common/sss_tools.c | 1 -
7500e1
 1 file changed, 1 deletion(-)
7500e1
7500e1
diff --git a/src/tools/common/sss_tools.c b/src/tools/common/sss_tools.c
7500e1
index 637e251f6..806667f46 100644
7500e1
--- a/src/tools/common/sss_tools.c
7500e1
+++ b/src/tools/common/sss_tools.c
7500e1
@@ -512,7 +512,6 @@ int sss_tool_main(int argc, const char **argv,
7500e1
 
7500e1
     uid = getuid();
7500e1
     if (uid != 0) {
7500e1
-        DEBUG(SSSDBG_CRIT_FAILURE, "Running under %d, must be root\n", uid);
7500e1
         ERROR("%1$s must be run as root\n", argv[0]);
7500e1
         return EXIT_FAILURE;
7500e1
     }
7500e1
-- 
7500e1
2.26.3
7500e1