Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common_analysis_oms
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
common_analysis_oms
Commits
cfb28dcd
Commit
cfb28dcd
authored
Apr 25, 2017
by
Peter Weidenbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HWT-396: print -> logging
parent
11eabe2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
oms.py
common_analysis_oms/oms.py
+2
-2
No files found.
common_analysis_oms/oms.py
View file @
cfb28dcd
...
...
@@ -66,7 +66,7 @@ class CommonAnalysisOMS(AnalysisPluginFile):
self
.
result_dict
[
"positives"
]
+=
1
else
:
finding
=
"clean"
print
(
"result: "
+
finding
)
logging
.
debug
(
"result: "
+
finding
)
return
{
"result"
:
finding
,
"detected"
:
finding
!=
"clean"
,
"version"
:
self
.
get_av_scan_result
(
av
,
"--version"
)}
...
...
@@ -80,7 +80,7 @@ class CommonAnalysisOMS(AnalysisPluginFile):
def
execute_scans
(
self
,
filepath
):
result
=
{}
for
av
in
self
.
av_list
:
print
(
"Starting scan with {} ({}/{})"
.
format
(
av
[
"name"
],
logging
.
debug
(
"Starting scan with {} ({}/{})"
.
format
(
av
[
"name"
],
self
.
av_list
.
index
(
av
)
+
1
,
self
.
result_dict
[
"number_of_scanners"
]))
scanresult
=
self
.
get_av_scan_result
(
av
,
repr
(
path
.
abspath
(
filepath
)))
logging
.
debug
(
repr
(
scanresult
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment