Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #59 from programatt/programatt-patch-1
Browse files Browse the repository at this point in the history
Fix spelling errors in log output
  • Loading branch information
lukehinds committed Jun 17, 2020
2 parents a980adb + c1f69bd commit b945fb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions anteater/src/patch_scan.py
Expand Up @@ -247,7 +247,7 @@ def negative_report(binary_report, sha256hash, project, patch_file):
report_url = binary_report['permalink']
scan_date = binary_report['scan_date']
logger.info('File scan date for %s shows a clean status on: %s', patch_file, scan_date)
logger.info('Full report avaliable here: %s', report_url)
logger.info('Full report available here: %s', report_url)
logger.info('The following sha256 hash can be used in your %s.yaml file to suppress this scan:', project)
logger.info('%s', sha256hash)
with open(reports_dir + "binaries-" + project + ".log", "a") as gate_report:
Expand All @@ -266,7 +266,7 @@ def positive_report(binary_report, sha256hash, project, patch_file):
scan_date = binary_report['scan_date']
logger.error("Virus Found!")
logger.info('File scan date for %s shows a infected status on: %s', patch_file, scan_date)
logger.info('Full report avaliable here: %s', report_url)
logger.info('Full report available here: %s', report_url)


def scan_ipaddr(ipaddr, apikey):
Expand Down
4 changes: 2 additions & 2 deletions anteater/src/project_scan.py
Expand Up @@ -224,7 +224,7 @@ def negative_report(binary_report, sha256hash, split_path, project, full_path):
report_url = binary_report['permalink']
scan_date = binary_report['scan_date']
logger.info('File scan date for %s shows a clean status on: %s', split_path, scan_date)
logger.info('Full report avaliable here: %s', report_url)
logger.info('Full report available here: %s', report_url)
logger.info('The following sha256 hash can be used in your %s.yaml file to suppress this scan:', project)
logger.info('%s:', sha256hash)
with open(reports_dir + "binaries-" + project + ".log", "a") as gate_report:
Expand All @@ -242,7 +242,7 @@ def positive_report(binary_report, sha256hash, split_path, project, full_path):
scan_date = binary_report['scan_date']
logger.error("Virus Found!")
logger.info('File scan date for %s shows a infected status on: %s', split_path, scan_date)
logger.info('Full report avaliable here: %s', report_url)
logger.info('Full report available here: %s', report_url)
with open(reports_dir + "binaries-" + project + ".log", "a") as gate_report:
gate_report.write('Virus Found!: {}\n'.format(full_path))
gate_report.write('File scan date for {} shows a infected status on: {}\n'.format(split_path, scan_date))
Expand Down

0 comments on commit b945fb2

Please sign in to comment.