-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: add logging function for basic error types (#363)
**Issue number:[ADDON-68670](https://splunk.atlassian.net/browse/ADDON-68670)** ## Summary Extending log module with new error logging functions. Breaking change for `log_exception` function. ### Changes * added new functions for error logging. * added `exc_l` parameter to logging message to categorize errors. * added `exc_l` parameter to `log_exception` function as a mandatory argument to log errors with custom category. ### User experience * user can categorize errors in the add-on using new functions. For now 5 basic categories are prepered: Authentication, Permission, Connection, Configuration, Server. * user can add custom error category using `log_exception` function by adding another args `exc_label` * all user's current use of the `log_exception` function must be extended with a `exc_label` argument to categorize error. ## Checklist If your change doesn't seem to apply, please leave them unchecked. * [x] I have performed a self-review of this change * [x] Changes have been tested * [] Changes are documented * [x] PR title follows [conventional commit semantics](https://www.conventionalcommits.org/en/v1.0.0/)
- Loading branch information
1 parent
6bf4734
commit 9cb5638
Showing
2 changed files
with
86 additions
and
8 deletions.
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
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