From 9a990aa9f7e8c105e0cfeea8d8cbdc776c2d5d7a Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 8 Jul 2014 15:05:24 +0200 Subject: SSSD: Send debug to stderr when running on foreground MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://fedorahosted.org/sssd/ticket/2348 When SSSD is running in interactive mode, we should print DEBUG messages directly to stderr, not journal. Reviewed-by: Michal Židek --- src/providers/ldap/ldap_child.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/providers/ldap') diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c index ee7bbff89..e2fe3f232 100644 --- a/src/providers/ldap/ldap_child.c +++ b/src/providers/ldap/ldap_child.c @@ -439,6 +439,8 @@ int main(int argc, const char *argv[]) _("Show timestamps with microseconds"), NULL}, {"debug-fd", 0, POPT_ARG_INT, &debug_fd, 0, _("An open file descriptor for the debug logs"), NULL}, + {"debug-to-stderr", 0, POPT_ARG_NONE | POPT_ARGFLAG_DOC_HIDDEN, &debug_to_stderr, 0, \ + _("Send the debug output to stderr directly."), NULL }, \ POPT_TABLEEND }; -- cgit