`syncDirectories` fails due to log truncation
allanbowe opened this issue ยท 1 comments
allanbowe commented
The syncDirectories
feature hijacks the SAS log for returning JSON - which will remain the case until we address #336
Currently this is an issue on Viya as the lines are force-wrapped despite the options ps=max ls=max;
option
So to address, we should simply removed the \n
characters to bring the JSON back together.
Eg from:
>>weboutBEGIN<<
{"PROCESSED_DTTM" : "2022-12-21T15:39:32.631368"
, "hashes":
[{"DIRECTORY":"/export/pvs/sasdata/homes/viyademo08f/stephan/extract" ,"FILE_HASH":"F041B4AF15A7F844D20F45BA4F5EE1B4" ,"HASH_DURATION":0.0069699287 ,"FILE_PATH":"/export/pvs/sasdata/homes/viyademo08f/stephan/extract/makedata2.sas" ,"FILE_OR_FOLDER":"file"
,"LEVEL":1 }
,{"DIRECTORY":"/export/pvs/sasdata/homes/viyademo08f/stephan/load" ,"FILE_HASH":"616C9FA7A70C53AF4D335BE546B62441" ,"HASH_DURATION":0.007089138 ,"FILE_PATH":"/export/pvs/sasdata/homes/viyademo08f/stephan/load/runjob1.test.sas" ,"FILE_OR_FOLDER":"file" ,"LE
VEL":1 }
]
}
>>weboutEND<<
To:
{"PROCESSED_DTTM" : "2022-12-21T15:39:32.631368", "hashes":[{"DIRECTORY":"/export/pvs/sasdata/homes/viyademo08f/stephan/extract","FILE_HASH":"F041B4AF15A7F844D20F45BA4F5EE1B4","HASH_DURATION":0.0069699287,"FILE_PATH":"/export/pvs/sasdata/homes/viyademo08f/stephan/extract/makedata2.sas","FILE_OR_FOLDER":"file","LEVEL":1 },{"DIRECTORY":"/export/pvs/sasdata/homes/viyademo08f/stephan/load","FILE_HASH":"616C9FA7A70C53AF4D335BE546B62441","HASH_DURATION":0.007089138,"FILE_PATH":"/export/pvs/sasdata/homes/viyademo08f/stephan/load/runjob1.test.sas","FILE_OR_FOLDER":"file" ,"LEVEL":1 }]}
sasjsbot commented
๐ This issue has been resolved in version 1.26.5 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐