From 06f5f3d7fb79bc8c3366e1c60405af0ac1162938 Mon Sep 17 00:00:00 2001 From: matv864 Date: Fri, 10 Jan 2025 11:24:27 +1000 Subject: [PATCH] check errors --- task_3/log_writer.cpp | 3 ++- task_3/log_writer.h | 9 --------- task_3/main.cpp | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/task_3/log_writer.cpp b/task_3/log_writer.cpp index 25d5263..10b54b6 100644 --- a/task_3/log_writer.cpp +++ b/task_3/log_writer.cpp @@ -18,5 +18,6 @@ int LogWriter::write_log(const std::string& log_line) { int LogWriter::log_start_line(int pid){ - time_t now = time(NULL); + write_log("hello"); + return 0; } \ No newline at end of file diff --git a/task_3/log_writer.h b/task_3/log_writer.h index 856ff10..1530c38 100644 --- a/task_3/log_writer.h +++ b/task_3/log_writer.h @@ -1,16 +1,7 @@ #ifndef PROCESS_LAUNCHER_H #define PROCESS_LAUNCHER_H -#ifdef _WIN32 - #include -#else - #include - #include - #include -#endif - #include - #include #include #include diff --git a/task_3/main.cpp b/task_3/main.cpp index 2460dea..fdd0c9c 100644 --- a/task_3/main.cpp +++ b/task_3/main.cpp @@ -16,7 +16,7 @@ int main(int argc, char* argv[]) { } std::cout << "launch main part\n"; - int res = LogWriter::write_log("heelo"); + int res = LogWriter::log_start_line(1); std::cout << res; return 0; } \ No newline at end of file