Skip to content

Commit

Permalink
Set default log level in tests to debug (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stringy authored Feb 12, 2024
1 parent 507b1d8 commit 003a523
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
IMAGE_FAMILY: "{{ vm_image_family }}"
COLLECTOR_IMAGE: "{{ collector_image }}"
COLLECTOR_QA_TAG: "{{ lookup('env', 'COLLECTOR_QA_TAG', default=lookup('file', integration_tests_root + '/container/QA_TAG')) }}"
COLLECTOR_LOG_LEVEL: "{{ lookup('env', 'COLLECTOR_LOG_LEVEL', default='info') }}"
COLLECTOR_LOG_LEVEL: "{{ lookup('env', 'COLLECTOR_LOG_LEVEL', default='debug') }}"
register: test_result
# ensure that this is printed
tags: [print_action]
Expand Down
8 changes: 6 additions & 2 deletions collector/lib/ProcessSignalFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ ProcessSignal* ProcessSignalFormatter::CreateProcessSignal(sinsp_evt* event) {
signal_lineage->set_parent_uid(p.parent_uid());
}

CLOG(DEBUG) << "Process (" << signal->pid() << "): " << signal->name() << " (" << signal->exec_file_path() << ")"
CLOG(DEBUG) << "Process (" << signal->container_id() << ": " << signal->pid() << "): "
<< signal->name()
<< " (" << signal->exec_file_path() << ")"
<< " " << signal->args();

return signal;
Expand Down Expand Up @@ -202,7 +204,9 @@ ProcessSignal* ProcessSignalFormatter::CreateProcessSignal(sinsp_threadinfo* tin
signal_lineage->set_parent_uid(p.parent_uid());
}

CLOG(DEBUG) << "Process (" << signal->pid() << "): " << signal->name() << " (" << signal->exec_file_path() << ")"
CLOG(DEBUG) << "Process (" << signal->container_id() << ": " << signal->pid() << "): "
<< signal->name()
<< " (" << signal->exec_file_path() << ")"
<< " " << signal->args();

return signal;
Expand Down

0 comments on commit 003a523

Please sign in to comment.