Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #308 from cfi-gb/extend_log
Browse files Browse the repository at this point in the history
[20.08] Mention PID in the scan stopping / stopped log messages.
  • Loading branch information
bjoernricks authored Aug 3, 2020
2 parents bfe22fc + 2a12cb4 commit 1c0dec8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ospd/ospd.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ def stop_scan(self, scan_id: str) -> None:

self.set_scan_status(scan_id, ScanStatus.STOPPED)

logger.info('%s: Scan stopping %s.', scan_id, scan_process.ident)
logger.info(
'%s: Stopping Scan with the PID %s.', scan_id, scan_process.ident
)

self.stop_scan_cleanup(scan_id)

Expand All @@ -396,7 +398,9 @@ def stop_scan(self, scan_id: str) -> None:
_terminate_process_group(scan_process)
except ProcessLookupError:
logger.info(
'%s: Scan already stopped %s.', scan_id, scan_process.pid
'%s: Scan with the PID %s is already stopped.',
scan_id,
scan_process.pid,
)

if scan_process.ident != os.getpid():
Expand Down

0 comments on commit 1c0dec8

Please sign in to comment.