Page 1 of 1

Log displaying partial value of variable

Posted: Tue Mar 21, 2017 5:29 pm
by vikas
hi

We have a code where we are assigning a XML string to a variable and later displaying it using <log> tag.
However I see that only a part of xml string gets printed in log.

Is there any length limitation that I am running into? Kindly let me know.

Code: Select all

<assign name="submitData" expr="'<verifyCardRequest>
				<requestId>' + session.id + hitCounter + '</requestId>
				<merchantId>' + merchantId + '</merchantId>
				<previousAttempts>' + previousAttempts + '</previousAttempts>
				<millisecondsToWait>' + millisecondsToWait + '</millisecondsToWait>
				<cardNumber>' + primaryAccountNumber + '</cardNumber>
				<expirationMonth>' + expirationMonth + '</expirationMonth>
				<expirationYear>' + expirationYear + '</expirationYear>
				<securityCode>' + securityCode + '</securityCode>
				<channel>' + channel.id + '</channel>
				</verifyCardRequest>'" />

<log expr="'*****submitData = ' + submitData"/>
Value displayed in log

LOCAL: *****submitData = <verifyCardRequest> <requestId>400024;005;149011976501</requestId> <merchantId>603000*****</merchantId> <previousAttempts>0</previousAttempts> <millisecondsToWait>20000</millisecondsToWait> <cardNumber>45112980027****

Re: Log displaying partial value of variable

Posted: Tue Mar 28, 2017 9:48 am
by support
Hi Vikas,

Yes, there is a log limitation; log entries are limited to a maximum length of 255 bytes. Please let us know if you have anymore questions.

Regards,
Plum Support