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

Debug: Avoid useless error in logs #9058

Merged
merged 1 commit into from Dec 12, 2023

Conversation

kiblik
Copy link
Contributor

@kiblik kiblik commented Nov 27, 2023

Drop

django-defectdojo-uwsgi-1         | Can't listen for client connections: [Errno 98] Address already in use
django-defectdojo-uwsgi-1         | Traceback (most recent call last):
django-defectdojo-uwsgi-1         |   File "/app/dojo/wsgi.py", line 50, in <module>
django-defectdojo-uwsgi-1         |     debugpy.listen(("0.0.0.0", debugpy_port))
django-defectdojo-uwsgi-1         |   File "/usr/local/lib/python3.11/site-packages/debugpy/public_api.py", line 31, in wrapper
django-defectdojo-uwsgi-1         |     return wrapped(*args, **kwargs)
django-defectdojo-uwsgi-1         |            ^^^^^^^^^^^^^^^^^^^^^^^^
django-defectdojo-uwsgi-1         |   File "/usr/local/lib/python3.11/site-packages/debugpy/server/api.py", line 143, in debug
django-defectdojo-uwsgi-1         |     log.reraise_exception("{0}() failed:", func.__name__, level="info")
django-defectdojo-uwsgi-1         |   File "/usr/local/lib/python3.11/site-packages/debugpy/server/api.py", line 141, in debug
django-defectdojo-uwsgi-1         |     return func(address, settrace_kwargs, **kwargs)
django-defectdojo-uwsgi-1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django-defectdojo-uwsgi-1         |   File "/usr/local/lib/python3.11/site-packages/debugpy/server/api.py", line 262, in listen
django-defectdojo-uwsgi-1         |     raise RuntimeError(str(endpoints["error"]))
django-defectdojo-uwsgi-1         | RuntimeError: Can't listen for client connections: [Errno 98] Address already in use

from all reload logs

Copy link

Contextual Security Analysis

As DryRun Security performs checks, we’ll summarize them here. You can always dive into the results in the section below for checks.

Status DryRun Security Check
Configured Sensitive Files Check
AI-powered Sensitive Files Check

Chat with your AI-powered Security Buddy by typing /dryrunsec: (or /drs:) followed by your question. Example: /dryrunsec: From a security perspective, what are some sensitive files in an Express application?

Install and configure more repositories at DryRun Security

@kiblik kiblik changed the title Debug: Avoid displating useless error Debug: Avoid useless error in logs Nov 27, 2023
Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@Maffooch Maffooch merged commit 2f57c3f into DefectDojo:dev Dec 12, 2023
117 of 118 checks passed
@kiblik kiblik deleted the debug_avoid_useless_error branch December 12, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants