Skip to content
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

fix: add logs in traps server for situations when incoming traps have wrong credentials #953

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

wojtekzyla
Copy link
Collaborator

@wojtekzyla wojtekzyla commented Feb 7, 2024

Description

This PR adds logging for snmp traps errors

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Refactor/improvement

How Has This Been Tested?

Manual testing

Checklist

  • My commit message is conventional
  • I have run pre-commit on all files before creating the PR
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have checked my code and corrected any misspellings

@wojtekzyla wojtekzyla changed the title fix: add logs in traps server for situations when incoming traps have… fix: add logs in traps server for situations when incoming traps have wrong credentials Feb 7, 2024
splunk_connect_for_snmp/traps.py Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (8d9399f) 84.32% compared to head (743687e) 84.11%.

Files Patch % Lines
splunk_connect_for_snmp/traps.py 0.00% 5 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #953      +/-   ##
===========================================
- Coverage    84.32%   84.11%   -0.21%     
===========================================
  Files           28       28              
  Lines         2022     2027       +5     
===========================================
  Hits          1705     1705              
- Misses         317      322       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

docs/bestpractices.md Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
docs/bestpractices.md Outdated Show resolved Hide resolved
… wrong credentials

fix: delete unwanted files

fix: add logging of source device ip

fix: log only necessary info

fix: run pre-commit

fix: update the troubleshooting documentation

fix: add comment in code

fix: fixes from pr review

fix: fix typos in documentation
@wojtekzyla wojtekzyla merged commit 0cdd7ec into develop Feb 8, 2024
10 of 11 checks passed
@wojtekzyla wojtekzyla deleted the fix/log-trap-auth-errors branch February 8, 2024 09:16
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2024
@srv-rr-github-token
Copy link
Contributor

🎉 This PR is included in version 1.10.0-beta.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants