-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log Level Review #28
Log Level Review #28
Conversation
…ified log levels for each log statement.
…s to `.gitignore`
Log Level Review
kafka-test/CMakeLists.txt
Outdated
@@ -32,6 +32,9 @@ | |||
# Cyber and Information Security Research (CISR) Group Oak Ridge National | |||
# Laboratory | |||
# 865-804-5161 (mobile) | |||
|
|||
# NOTE: THIS FILE IS DEPRECATED AS OF 5/17/2023 AND IS NOT RECOMMENDED FOR USE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The files in the kafka-test
directory are separate from the primary project, not referenced anywhere and have not been tested recently to my knowledge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is added here.
Line 58 in 30e2b4d
add_subdirectory(kafka-test) |
If we run the cmake command with higher cmake version 3 at the root folder, this cmake 2.6 will report cmake version is low.
![image](https://private-user-images.githubusercontent.com/62157949/249259808-09fac873-5c41-4c71-a484-7ff1aa211a9f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1ODk5NTksIm5iZiI6MTcyMDU4OTY1OSwicGF0aCI6Ii82MjE1Nzk0OS8yNDkyNTk4MDgtMDlmYWM4NzMtNWM0MS00YzcxLWE0ODQtN2ZmMWFhMjExYTlmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA1MzQxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNhYWJlNzZlZDMwZTI5ZTBhZjcxYTAwNDEzZTQ5MjA5OTY5ZTAzNWM2MmIzOTkxYmU1OTUxZDg3OGE2NGU0ZGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.8NfDngxtGMcaL-MYBI7VbFeS2Z4rM9td2zO-UkV9fDY)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I stand corrected, the deprecation note has been removed.
build_local.sh
Outdated
@@ -57,6 +57,7 @@ compileSpecAndBuildLibrary(){ | |||
buildACM(){ | |||
# Build the ACM | |||
echo "${GREEN}Building ACM${NC}" | |||
rm -r build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check if build folder exist before remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check has been added to the script via CDOT-CV#11.
kafka-test/src/rdkafka_example.cpp
Outdated
@@ -32,6 +32,8 @@ | |||
* (https://github.com/edenhill/librdkafka) | |||
*/ | |||
|
|||
// NOTE: THIS FILE IS DEPRECATED AS OF 5/17/2023 AND IS NOT RECOMMENDED FOR USE. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as the above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The files in the kafka-test
directory are separate from the primary project, not referenced anywhere and have not been tested recently to my knowledge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This deprecation note has been removed.
RdKafka::PartitionMetadata::ISRSIterator iis; | ||
for (iis = ip->isrs()->begin(); iis != ip->isrs()->end() ; ++iis) | ||
std::cout << (iis == ip->isrs()->begin() ? "":",") << *iis; | ||
logger->info(" " + std::to_string(*iis)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this " " for all logger?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to include " " in all logging messages. In this for loop the data should be separated by something since it was being separated before.
…d-folder-exists-before-removing Added check for build folder existence before deletion
This is ready for re-review! @dan-du-car |
Removed deprecation warnings for files in `kafka-test` directory.
Write output from the ASN1_Codec::filetest function directly to stdout
Changes
Reviewed and adjusted the log levels for each log statement as necessary.
Replaced std::cout & std::cerr with the logger whenever possible, except for certain cases:
Tool.cpp
.Additional Changes
.gitignore
.build_local.sh
script to remove the 'build' directory before compilation.docker-compose.yml
./kafka-test
directory as deprecated.Testing
build_local.sh
anddocker-compose.yml
.