-
Notifications
You must be signed in to change notification settings - Fork 3.9k
GH-47518: [C++][FlightRPC] Replace spdlogs with Arrow's Internal Logging
#47645
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
602fea4
Replace `spdlogs` with Arrow's Internal Logging
alinaliBQ 74594cf
Address comments from Kou
alinaliBQ 90d0a72
Call `ShutDownArrowLog`
alinaliBQ 93f095c
Register log confditionally
alinaliBQ 116ae2d
Revert "Register log confditionally"
alinaliBQ 044079b
Register log if log level is not info
alinaliBQ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -280,7 +280,7 @@ int DsnConfigurationWindow::CreateEncryptionSettingsGroup(int posX, int posY, in | |
| rightCheckPosX, rowPos - 2, 20, 2 * ROW_HEIGHT, "", | ||
| ChildId::DISABLE_CERT_VERIFICATION_CHECKBOX, disableCertVerification); | ||
|
|
||
| rowPos += INTERVAL + static_cast<int>(1.5 * ROW_HEIGHT); | ||
| rowPos += INTERVAL + static_cast<int>(1.5 * static_cast<int>(ROW_HEIGHT)); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| encryptionSettingsGroupBox = | ||
| CreateGroupBox(posX, posY, sizeX, rowPos - posY, "Encryption settings", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 0 additions & 67 deletions
67
cpp/src/arrow/flight/sql/odbc/odbcabstraction/include/odbcabstraction/logger.h
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
cpp/src/arrow/flight/sql/odbc/odbcabstraction/include/odbcabstraction/spd_logger.h
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We don't want to enable logging only on INFO log level, right?
I think removing this condition (why do we need to disable?) or using
log_level <= ArrowLogLevel::ARROW_INFO(disable all not important logs) is better. But we can revisit this later if it's needed.Uh oh!
There was an error while loading. Please reload this page.
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 agree that let's revisit this later. We do want to enable all kinds of logging. This condition is actually more for tests, not for disabling logging. I found that the enable log command was called multiple times, so I added this condition in hopes to reduce the number of times the logging starts.
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.
INFO logging is enabled in Arrow logging framework by default. I have tested this. So to ensure logging is enabled, we only need to call
StartArrowLogif the log level is not INFO.