-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add debug log for work unit payloads #1146
Merged
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
129a86c
Add debug log for work unit payloads
matoval 674a050
Fix lint
matoval cd1dfd8
fix lint
matoval 1840fc1
Fix gci
matoval f8d0a6c
Updated log var and implemented log levels
matoval 373668d
fix lint
matoval 669a77a
Move logic to logger, add logging for kube
matoval df2820f
Add unit tests
matoval 2d9ebbf
Add payload debugging to docs
matoval 557f84e
Update docs, single log and update tests
matoval 7255eb2
update docs
matoval 60c9e7c
Update doc
matoval 19811c8
Update docs debug level table
matoval 7aef585
Skip lint
matoval dca7982
skip lint
matoval b8d81fa
Fix lint
matoval 87d1972
Updated docs replacing debug with trace
matoval 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 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 |
---|---|---|
|
@@ -62,6 +62,27 @@ Log level | |
- Error | ||
- string | ||
|
||
Add payload debuging using `RECEPTOR_PAYLOAD_DEBUG=int` envorment variable and using log level debug. | ||
|
||
.. list-table:: RECEPTOR_PAYLOAD_DEBUG options | ||
:header-rows: 1 | ||
:widths: auto | ||
|
||
* - Debug level | ||
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. I suggest "Tracing Level" |
||
- Description | ||
* - 0 | ||
- No payload debug log | ||
* - 1 | ||
- Log connection type | ||
* - 2 | ||
- Log connection type and work unit id | ||
* - 3 | ||
- Log connection type, work unit id and payload | ||
|
||
**Warning: Payload Debugging May Expose Sensitive Data** | ||
|
||
Please be aware that using payload debugging can potentially reveal sensitive information. This includes, but is not limited to, personal data, authentication tokens, and system configurations. Ensure that you only use debugging tools in a secure environment and avoid sharing debug output with unauthorized users. Always follow your organization's data protection policies when handling sensitive information. Proceed with caution! | ||
|
||
.. code-block:: yaml | ||
|
||
log-level: | ||
|
This file contains 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 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 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 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 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
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.
The Env var is called
RECEPTOR_PAYLOAD_TRACE_LEVEL
not thisThere 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.
In general I think it would be a good idea to replace everywhere where you have the word "debug" with the word "trace"