-
Notifications
You must be signed in to change notification settings - Fork 36
Conversation
Codecov Report
@@ Coverage Diff @@
## ospd-20.08 #352 +/- ##
==============================================
+ Coverage 73.75% 73.91% +0.15%
==============================================
Files 23 23
Lines 2576 2603 +27
==============================================
+ Hits 1900 1924 +24
- Misses 676 679 +3
Continue to review full report at Codecov.
|
9d39ed4
to
a2a583e
Compare
CHANGELOG.md
Outdated
@@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). | |||
|
|||
### Added | |||
- Allow the scanner to update total count of hosts. [#332](https://github.com/greenbone/ospd/pull/332) | |||
- Add more debug logging. [#352](https://github.com/greenbone/ospd/pull/352) | |||
- Set end_time for interrupted scans. [#352](https://github.com/greenbone/ospd/pull/352) |
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.
Should this part be put into another separated PR?
ospd/ospd.py
Outdated
def _get_scan_progress_xml(self, scan_id: str): | ||
"""Gets scan_id scan's progress in XML format. | ||
|
||
@return: String of scan progress in xml. |
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.
Should be
@return: String of scan progress in xml. | |
Returns: | |
String of scan progress in xml. |
ospd/ospd.py
Outdated
if not is_stopped and progress == ScanProgress.FINISHED: | ||
self.finish_scan(scan_id) | ||
elif not is_stopped: | ||
logger.info( | ||
"%s: Host scan finished. Progress: %d, " "Status: %s", |
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.
"%s: Host scan finished. Progress: %d, " "Status: %s", | |
"%s: Host scan finished. Progress: %d, Status: %s", |
This changes will be commited in a separate PR.
86c7ccd
to
302aae9
Compare
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.
Wow thanks a lot for fixing all docstrings! Looks good now
What:
Add debug level log messages
Why:
For debugging purposes.
How:
Set log level to debug and run a scan.
Checklist: