Remove all DEBUG_OUTPUT references

It turnes out it is not as useful as in the writer project.
This commit is contained in:
2020-05-11 13:52:29 +02:00
parent 92b4041070
commit 0ca06b8e7a
8 changed files with 0 additions and 209 deletions
-16
View File
@@ -9,14 +9,6 @@ using namespace std;
void WriterUtils::set_process_effective_id(int user_id)
{
#ifdef DEBUG_OUTPUT
using namespace date;
using namespace chrono;
cout << "[" << system_clock::now() << "]";
cout << "[WriterUtils::set_process_effective_id]";
cout << " Setting process user to " << user_id << endl;
#endif
// TODO: use setfsuid and setfsgid
if (setegid(user_id)) {
@@ -51,14 +43,6 @@ void WriterUtils::create_destination_folder(const string& output_file)
if (file_separator_index != string::npos) {
string output_folder(output_file.substr(0, file_separator_index));
#ifdef DEBUG_OUTPUT
using namespace date;
using namespace chrono;
cout << "[" << system_clock::now() << "]";
cout << "[WriterUtils::create_destination_folder]";
cout << " Creating folder " << output_folder << endl;
#endif
string create_folder_command("mkdir -p " + output_folder);
system(create_folder_command.c_str());
}