From b5ef640d107726b686f0abf161c1767fdceb3bcb Mon Sep 17 00:00:00 2001 From: Juan Jose Nicola Date: Thu, 17 Oct 2019 16:06:00 +0200 Subject: [PATCH] Set loglevel to debug for some message. In case of the port list, it could be flood the log file. For the amount of result, it can be a bit confused, since many results are "host details" which are not shown in gsa. --- CHANGELOG.md | 3 +++ ospd/ospd.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f173cb9..e59f87d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [2.0.1] (unreleased) +### Changed +- Set loglevel to debug for some message. [#159](https://github.com/greenbone/ospd/pull/159) + ### Fixed - Fix set permission in unix socket. [#157](https://github.com/greenbone/ospd/pull/157) diff --git a/ospd/ospd.py b/ospd/ospd.py index 125c5e99..8f203bb6 100644 --- a/ospd/ospd.py +++ b/ospd/ospd.py @@ -877,7 +877,7 @@ def start_scan(self, scan_id, targets, parallel=1): if self.get_scan_status(scan_id) == ScanStatus.STOPPED: return - logger.info( + logger.debug( "%s: Host scan started on ports %s.", target[0], target[1] ) scan_process = multiprocessing.Process( @@ -1165,7 +1165,7 @@ def get_scan_results_xml(self, scan_id, pop_res): for result in self.scan_collection.results_iterator(scan_id, pop_res): results.append(get_result_xml(result)) - logger.info('Returning %d results', len(results)) + logger.debug('Returning %d results', len(results)) return results def get_xml_str(self, data):