ci: more logging

This commit is contained in:
deepak1556
2023-12-05 19:43:42 +09:00
parent 6a7889ce67
commit 46837f8b3a
2 changed files with 3 additions and 0 deletions

View File

@@ -886,6 +886,7 @@ void App::BrowserChildProcessCrashedOrKilled(
}
if (data.process_type == content::PROCESS_TYPE_UTILITY) {
base::ProcessId pid = data.GetProcess().Pid();
LOG(WARNING) << "Process " << pid << " crashed.";
auto utility_process_wrapper = UtilityProcessWrapper::FromProcessId(pid);
if (utility_process_wrapper)
utility_process_wrapper->Shutdown(info.exit_code);

View File

@@ -201,6 +201,7 @@ void UtilityProcessWrapper::OnServiceProcessLaunched(
const base::Process& process) {
DCHECK(node_service_remote_.is_connected());
pid_ = process.Pid();
LOG(WARNING) << "Utility process created with pid " << pid_;
GetAllUtilityProcessWrappers().AddWithID(this, pid_);
if (stdout_read_fd_ != -1) {
EmitWithoutEvent("stdout", stdout_read_fd_);
@@ -235,6 +236,7 @@ void UtilityProcessWrapper::CloseConnectorPort() {
}
void UtilityProcessWrapper::Shutdown(int exit_code) {
LOG(WARNING) << "Utility process shutdown with exit code " << exit_code;
if (pid_ != base::kNullProcessId)
GetAllUtilityProcessWrappers().Remove(pid_);
node_service_remote_.reset();