Skip to content
Snippets Groups Projects
Commit 48f93deb authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Increase log level

parent 5a0bc8f0
No related branches found
No related tags found
1 merge request!84Increase log level
Pipeline #131664 failed
......@@ -30,7 +30,7 @@ parser.add_argument(
args = parser.parse_args()
logging.basicConfig(
filename='scans.log',
filename='scan.log',
level=logging.DEBUG,
format='%(asctime)s %(levelname)-8s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S',
......
......@@ -23,13 +23,23 @@
- name: Adding execution permission to scan script
file:
dest: "{{ paas_ci_scan_script_path }}/scan.py"
dest: "{{ paas_ci_scan_script_path + '/scan.py' }} "
mode: a+x
- name: Show dep json file
debug:
msg: "{{lookup('file', item.path)}}"
with_items: "{{ paas_ci_workdir + '/dep.json'}}"
- name: Run scan
command: "{{ paas_ci_scan_script_path }}/scan.py --endpoint-keys {{ paas_ci_test.endpoints_to_scan }} --dep-json {{ paas_ci_workdir + '/dep.json'}} --output-dir {{ paas_ci_workdir }}"
register: scan_output
- name: Scan logs
debug:
msg: "{{lookup('file', item.path)}}"
with_items: "{{ paas_ci_workdir + 'scan.log' }}"
- name: Show scan output
debug:
msg: "{{ scan_output }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment