moving docs, log files and iwyu map
This commit is contained in:
parent
b43901de1a
commit
f8a273ec84
@ -21,7 +21,7 @@ for build_candidate in "$PROJECT_ROOT/build-container" "$PROJECT_ROOT/build-loca
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
IWYU_MAPPING="$PROJECT_ROOT/.iwyu.imp"
|
IWYU_MAPPING="$PROJECT_ROOT/scripts/.iwyu.imp"
|
||||||
|
|
||||||
# Colors for output
|
# Colors for output
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
|
|||||||
@ -122,9 +122,9 @@ TEST_F(LogTest, SetStdoutChannel)
|
|||||||
|
|
||||||
TEST_F(LogTest, SetFileChannel)
|
TEST_F(LogTest, SetFileChannel)
|
||||||
{
|
{
|
||||||
EXPECT_NO_THROW(Log::setFileChannel("test_log.log", std::ios_base::trunc));
|
EXPECT_NO_THROW(Log::setFileChannel("logs/test_log.log", std::ios_base::trunc));
|
||||||
// Setting again to see if it handles multiple calls
|
// Setting again to see if it handles multiple calls
|
||||||
EXPECT_NO_THROW(Log::setFileChannel("test_log.log", std::ios_base::app));
|
EXPECT_NO_THROW(Log::setFileChannel("logs/test_log.log", std::ios_base::app));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: More comprehensive tests would involve checking actual log outputs,
|
// Note: More comprehensive tests would involve checking actual log outputs,
|
||||||
|
|||||||
@ -16,7 +16,7 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log::setFileChannel("webserv.log", std::ios_base::trunc);
|
Log::setFileChannel("logs/webserv.log", std::ios_base::trunc);
|
||||||
Log::setStdoutChannel();
|
Log::setStdoutChannel();
|
||||||
|
|
||||||
Log::info("\n======================\nStarting webserv...\n======================\n");
|
Log::info("\n======================\nStarting webserv...\n======================\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user