oveits / ProvisioningEngine

Ruby on Rails based ProvisioningEngine Frontend for provisioning of legacy systems via Apache Camel Backend (SOAP/XML+SPML+File import)
3 stars 6 forks source link

Provisioning Logs should not be truncated #7

Closed oveits closed 8 years ago

oveits commented 8 years ago

If I create a customer and there is an unknown error, the error is trunkated after 1000 chars. It should not be trunkated at all. In the ProvisioningTask list, we only show the first 3 lines anyway.

Background: I have specified customerLanguage = englishUS on the CSL9DEV target. I already had expected to see an import error, but the most important part of the STDIN causing the error cannot be seen, because the output is trunkated:

finished with unknown ERROR[1]=BODY[0,1000]="<pre>###################################
# OSV_V8R1: Add Customer
###################################
customerLanguage=
customerLanguageOld=
usage: ./ccc.sh [ -f <CDCFileName> ] [ -v <FileName> ] [ --scenario <MT/ST> ] [ --scope <FI/NewCustomer/SiteDelta> ] [ -t <transactionid> ] [ --noexecute ] [ --UcLanguage + <language> ] [ --OsvLanguage + <language> ] [ -h ]

usage: ./ccc.sh [ -f <CDCFileName> ] [ -v <FileName> ] [ --scenario <MT/ST> ] [ --scope <FI/NewCustomer/SiteDelta> ] [ -t <transactionid> ] [ --noexecute ] [ --UcLanguage + <language> ] [ --OsvLanguage + <language> ] [ -h ]

STDERR:
STDIN:
#unresolvedParamsCount=`awk '!/^#/' /tmp/configFile-5863590.txt | grep -c "\\\\$"`
#echo "unresolvedParamsCount=$unresolvedParamsCount"
unresolvedParamsCount=0
cd /unisphere/srx3000/srx/ProvisioningScripts/
# if no unresolved parameters are found, apply the soapMassProv file:
if [ _$unresolvedParamsCount = _0 ]; then
# /opt/SMAW/bin/RtpAdmCli -l sysad -x <<End
#soapMassProv "-f=/tmp/config" at 2016-01-11 10:31:53 +0100