fix: correct condition check for fallback config in LogManager #532
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.
The condition for checking the fallback configuration had a typo
where it incorrectly referenced
m_dsgConfig->isInitializeSucceed()instead of
m_fallbackConfig->isInitializeSucceed(). This would causethe fallback configuration to be incorrectly skipped even when the
DSG configuration initialization failed but the fallback succeeded.
The fix ensures proper fallback logic by using the correct object's
initialization status.
Influence:
fallback config succeeds
when appropriate
fix: 修复 LogManager 中后备配置条件检查的错误
后备配置的检查条件存在拼写错误,错误地引用
了
m_dsgConfig->isInitializeSucceed()而不是m_fallbackConfig->isInitializeSucceed()。这会导致即使 DSG 配置初始化失败但后备配置成功时,后备配置也会被错误地跳过。修复通过使用正确对象的初始
化状态来确保正确的后备逻辑。
Influence: