Skip to content

Commit

Permalink
Changed AdmissionWebhook close hook log
Browse files Browse the repository at this point in the history
  • Loading branch information
getroot committed Dec 17, 2024
1 parent b5fe8ba commit e01f57b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/projects/modules/access_control/access_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ std::tuple<AccessController::VerificationResult, std::shared_ptr<const Admission
return {AccessController::VerificationResult::Error, nullptr};
}

logti("AdmissionWebhooks queried %s whether client %s could access %s. (Result : %s Elapsed : %u ms)",
control_server_url_address.CStr(), client_address->ToString(false).CStr(), request_url->ToUrlString().CStr(),
admission_webhooks->GetErrCode()==AdmissionWebhooks::ErrCode::ALLOWED?"Allow":"Reject", admission_webhooks->GetElapsedTime());
logti("AdmissionWebhooks notified %s that client %s has closed the connection to %s. (Response : %s Elapsed : %u ms)",
control_server_url_address.CStr(), client_address->ToString(false).CStr(), request_url->ToUrlString().CStr(), admission_webhooks->GetErrCode()==AdmissionWebhooks::ErrCode::ALLOWED?"Allow":"Reject", admission_webhooks->GetElapsedTime());

if(admission_webhooks->GetErrCode() != AdmissionWebhooks::ErrCode::ALLOWED)
{
Expand Down

0 comments on commit e01f57b

Please sign in to comment.