|
@@ -185,6 +185,9 @@ TString THttpRequest::LogHttpRequestResponseCommonInfoString() {
|
|
|
logString << " Action [" << ActionToString(Action_) << "]";
|
|
|
}
|
|
|
logString << " IP [" << SourceAddress_ << "] Duration [" << duration.MilliSeconds() << "ms]";
|
|
|
+ if (UserSid_) {
|
|
|
+ logString << " Subject [" << UserSid_ << "]";
|
|
|
+ }
|
|
|
return logString;
|
|
|
}
|
|
|
|
|
@@ -230,12 +233,6 @@ bool THttpRequest::DoReply(const TReplyParams& p) {
|
|
|
|
|
|
const TDuration parseTime = TInstant::Now() - StartTime_;
|
|
|
RLOG_SQS_BASE_DEBUG(*Parent_->ActorSystem_, "Parse time: [" << parseTime.MilliSeconds() << "ms]");
|
|
|
- RLOG_SQS_BASE_INFO(
|
|
|
- *Parent_->ActorSystem_,
|
|
|
- "Start request. User [" << UserName_ << "] Queue [" << QueueName_ << "], Cloud [" << AccountName_
|
|
|
- << "], Folder [" << FolderId_ << "] Action [" << ActionToString(Action_)
|
|
|
- << "] IP [" << SourceAddress_ << "]"
|
|
|
- );
|
|
|
|
|
|
if (!Parent_->Config.GetYandexCloudMode() && UserName_.empty()) {
|
|
|
WriteResponse(p, MakeErrorXmlResponse(NErrors::MISSING_PARAMETER, Parent_->AggregatedUserCounters_.Get(), "No user name was provided."));
|
|
@@ -568,6 +565,7 @@ bool THttpRequest::SetupRequest() {
|
|
|
TAuthActorData data {
|
|
|
.SQSRequest = std::move(requestHolder),
|
|
|
.HTTPCallback = std::move(httpCallback),
|
|
|
+ .UserSidCallback = [this](const TString& userSid) { UserSid_ = userSid; },
|
|
|
.EnableQueueLeader = enableQueueLeader,
|
|
|
.Action = Action_,
|
|
|
.ExecutorPoolID = Parent_->PoolId_,
|