-
Notifications
You must be signed in to change notification settings - Fork 348
Deprecate public crm_LOG_LEVEL() macros #4001
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
Open
nrwahl2
wants to merge
35
commits into
ClusterLabs:main
Choose a base branch
from
nrwahl2:nrwahl2-refactors
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+7,603
−6,773
Conversation
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
The tags argument is always 0, so they're equivalent: define qb_log(priority, fmt, args...) qb_logt(priority, 0, fmt, ##args) Signed-off-by: Reid Wahl <[email protected]>
See the removed comment for more info on why these gratuitous spaces were present in logging.h and cts-exec-helper.c. We don't use the extra space in other files that use '##args' (scheduler_internal.h, cib_utils.c, and output_log.c). And gcc fixed that bug in version 3.0.0, which was released in 2001. We should be okay. Details: https://gcc.gnu.org/onlinedocs/gcc-4.2.2/cpp/Differences-from-previous-versions.html#Differences-from-previous-versions https://gcc.gnu.org/gcc-3.0/ Signed-off-by: Reid Wahl <[email protected]>
To replace crm_emerg(). Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_crit(). Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_err(). Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_warn() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_notice() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_info() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_debug() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
Just came to mind Signed-off-by: Reid Wahl <[email protected]>
On the surface, it looks as if this changes public API. However, we require libqb v1.0.1 or later. qb/qblog.h has defined the LOG_TRACE constant since at least v0.5.0 (see commit 568befd). So LOG_TRACE is always defined when we reach the dropped code. Note that on GitHub, it looks as if commit 568befd was introduced in v1.9.0. However, that's due to a tag naming mistake: the commit is present in tag "1.9.0", which comes before "v1.9.0" in GitHub's sort order. If you view all tags in which this commit is found, you'll see that it's present in v0.5.0. Signed-off-by: Reid Wahl <[email protected]>
To replace LOG_STDOUT. We can't even deprecate LOG_STDOUT until the public macros that use it are deprecated. Signed-off-by: Reid Wahl <[email protected]>
To replace LOG_NEVER. We can't even deprecate LOG_NEVER until the public macros that use it are deprecated. Signed-off-by: Reid Wahl <[email protected]>
Contributor
Author
|
retest this please |
To replace crm_trace() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_log_xml_err() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_log_xml_warn() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_log_xml_notice() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_log_xml_info() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_log_xml_debug() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
To replace crm_log_xml_trace() Signed-off-by: Reid Wahl <[email protected]>
Pacemaker should not be used for general-purpose logging. Ref T622 Signed-off-by: Reid Wahl <[email protected]>
1351bb9 to
d4a2e49
Compare
Contributor
Author
|
I went ahead and added commits for the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.