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

Merge branch 'debug_paas_ci' into 'main'

Increase log level

See merge request !84
parents 3b8fc5ae 48f93deb
No related branches found
No related tags found
1 merge request!84Increase log level
...@@ -30,7 +30,7 @@ parser.add_argument( ...@@ -30,7 +30,7 @@ parser.add_argument(
args = parser.parse_args() args = parser.parse_args()
logging.basicConfig( logging.basicConfig(
filename='scans.log', filename='scan.log',
level=logging.DEBUG, level=logging.DEBUG,
format='%(asctime)s %(levelname)-8s %(message)s', format='%(asctime)s %(levelname)-8s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S', datefmt='%Y-%m-%d %H:%M:%S',
......
...@@ -23,13 +23,23 @@ ...@@ -23,13 +23,23 @@
- name: Adding execution permission to scan script - name: Adding execution permission to scan script
file: file:
dest: "{{ paas_ci_scan_script_path }}/scan.py" dest: "{{ paas_ci_scan_script_path + '/scan.py' }} "
mode: a+x mode: a+x
- name: Show dep json file
debug:
msg: "{{lookup('file', item.path)}}"
with_items: "{{ paas_ci_workdir + '/dep.json'}}"
- name: Run scan - 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 }}" 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 register: scan_output
- name: Scan logs
debug:
msg: "{{lookup('file', item.path)}}"
with_items: "{{ paas_ci_workdir + 'scan.log' }}"
- name: Show scan output - name: Show scan output
debug: debug:
msg: "{{ scan_output }}" 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