Skip to content

Commit 92311f9

Browse files
author
ubuntu
committed
rewrite toString method for class Requesst
1 parent 80b167e commit 92311f9

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

include/ccapi_cpp/ccapi_request.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,11 @@ class Request {
164164
shortCredential.insert(std::make_pair(x.first, UtilString::firstNCharacter(x.second, CCAPI_CREDENTIAL_DISPLAY_LENGTH)));
165165
}
166166
std::string output =
167-
"Request [exchange = " + exchange + ", marginType = " + marginType + ", instrument = " + instrument + ", serviceName = " + serviceName +
168-
", correlationId = " + correlationId +
167+
"Request [operation = " + operationToString(operation) + ", exchange = " + exchange + ", marginType = " + marginType + ", instrument = " + instrument +
168+
", serviceName = " + serviceName + ", correlationId = " + correlationId +
169169
(this->serviceName == CCAPI_FIX ? ", paramListFix = " + ccapi::toString(paramListFix) : ", paramList = " + ccapi::toString(paramList)) +
170-
", credential = " + ccapi::toString(shortCredential) + ", operation = " + operationToString(operation) +
171-
", timeSent = " + UtilTime::getISOTimestamp(timeSent) + ", index = " + ccapi::toString(index) + ", localIpAddress = " + localIpAddress +
172-
", baseUrl = " + baseUrl + "]";
170+
", credential = " + ccapi::toString(shortCredential) + ", timeSent = " + UtilTime::getISOTimestamp(timeSent) + ", index = " + ccapi::toString(index) +
171+
", localIpAddress = " + localIpAddress + ", baseUrl = " + baseUrl + "]";
173172
return output;
174173
}
175174

0 commit comments

Comments
 (0)