From 2871f8f8c167e0946d9170e77b8f11370f4453ab Mon Sep 17 00:00:00 2001 From: Chris Punches Date: Mon, 26 Jul 2021 02:18:47 -0400 Subject: [PATCH] updated more logging --- src/Sproc/Sproc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Sproc/Sproc.cpp b/src/Sproc/Sproc.cpp index 35d9c2f..c603bc4 100644 --- a/src/Sproc/Sproc.cpp +++ b/src/Sproc/Sproc.cpp @@ -247,7 +247,7 @@ int Sproc::execute(std::string shell, std::string environment_file, std::string slog.log(E_FATAL, "[ '" + task_name + "' ] STDOUT PIPE FAILED"); return SPROC_RETURN_CODES::PIPE_FAILED; } else { - // slog.log(E_DEBUG, "[ '" + task_name + "' ] file descriptors piped."); + slog.log(E_DEBUG, "[ '" + task_name + "' ] STDOUT Piped to Log."); } // man 3 pipe @@ -255,7 +255,7 @@ int Sproc::execute(std::string shell, std::string environment_file, std::string slog.log(E_FATAL, "[ '" + task_name + "' ] STDERR PIPE FAILED"); return SPROC_RETURN_CODES::PIPE_FAILED; } else { - slog.log(E_DEBUG, "[ '" + task_name + "' ] file descriptors piped."); + slog.log(E_DEBUG, "[ '" + task_name + "' ] STDERR Piped to Log."); } if (fcntl(child_stdout_pipe[READ_END], F_SETFD, FD_CLOEXEC) == -1) { @@ -280,7 +280,7 @@ int Sproc::execute(std::string shell, std::string environment_file, std::string // fork a process pid_t pid = fork(); - //slog.log( E_DEBUG, "[ '" + task_name + "' ] Process forked. Reporting. (PID: " + std::to_string(pid) + ")" ); + slog.log( E_DEBUG, "[ '" + task_name + "' ] Process forked. Reporting. (PID: " + std::to_string(pid) + ")" ); switch ( pid ) { case FORK_STATES::FORK_FAILURE: