Skip to content

Commit

Permalink
Add container ID to process logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Stringy committed Feb 6, 2024
1 parent 4946bbb commit 605cb4c
Showing 1 changed file with 6 additions and 2 deletions.
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 605cb4c

Please sign in to comment.