summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/debug.c b/src/util/debug.c
index 7816bc41a..e57656d7f 100644
--- a/src/util/debug.c
+++ b/src/util/debug.c
@@ -50,6 +50,11 @@ errno_t set_debug_file_from_fd(const int fd)
if (dummy == NULL) {
ret = errno;
DEBUG(1, ("fdopen failed [%d][%s].\n", ret, strerror(ret)));
+ sss_log(SSS_LOG_ERR,
+ "Could not open debug file descriptor [%d]. "
+ "Debug messages will not be written to the file "
+ "for this child process [%s][%s]\n",
+ fd, debug_prg_name, strerror(ret));
return ret;
}