Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Hygiene: move filename extraction logic from logging header to source file #2982

Conversation

aggarw13
Copy link
Contributor

@aggarw13 aggarw13 commented Feb 9, 2021

Improve the implementation of adding filename metadata in logs (when LOGGING_ENABLE_METADATA_WITH_C99_AND_GNU_EXTENSION config is enabled) by moving string operation logic from logging_stack.h to .c file that encapsulates implementation of logging functions. Also, replace use of toolchain-identifying preprocessor logic with if-else logic that reliably extracts filename from file-path.

@aggarw13 aggarw13 requested a review from a team as a code owner February 9, 2021 00:13
aggarg
aggarg previously approved these changes Feb 9, 2021
@aggarw13
Copy link
Contributor Author

aggarw13 commented Feb 9, 2021

/bot run checks

@aggarw13 aggarw13 merged commit 75b940d into aws:master Feb 9, 2021
@aggarw13 aggarw13 deleted the hygiene/improve-file-name-metadata-logic-in-logging branch February 9, 2021 02:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants