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

Drop severity type "debug" #1316

Merged
merged 18 commits into from
Oct 12, 2020
Merged

Conversation

janowagner
Copy link
Member

@janowagner janowagner commented Oct 6, 2020

What:

Any code to handle the message type "Debug Message" and the severity type "Debug" is removed.

Why:

This removes unneeded code and thus simplifies code. Also, this potentially makes code faster
as it removes useless conditionals from result loops.

The creation of Debug Messages was removed with the release of OpenVAS-5 in March 2012.

How:

Testing the changes was about testing the scan results keep the same.
Basically it is dead code with no influence other than consuming CPU cycles.

Checklist:

@janowagner janowagner marked this pull request as ready for review October 8, 2020 17:02

/* Replace any result type "Debug Message" by "Error Message". */

sql ("UPDATE results SET type = 'Error Message' WHERE type = 'Debug Message';");
Copy link
Contributor

Choose a reason for hiding this comment

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

Technically I guess this should set severity to -3.0. But realistically I don't think there are any debug messages out there.

@mattmundell mattmundell merged commit 3867d22 into greenbone:master Oct 12, 2020
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.

3 participants