TT#42150 Add log lines to investigate empty json issue

Change-Id: I30ae40c27c53a775272c055726a13bd738f29cfb
changes/83/22783/1
Marco Capetta 7 years ago
parent d1c0cdc1e2
commit 66810f2c66

@ -703,7 +703,11 @@ if ! "$SKIP_RUNSIPP" ; then
echo "$(date) - Move kamailio json files"
if [ -d "${JSON_DIR}" ] ; then
for i in "${JSON_DIR}"/*.json ; do
expand -t1 "$i" > "${LOG_DIR}/$(printf '%04d.json' "$(basename "$i" .json)")"
json_size_before=$(stat -c%s "${i}")
moved_file="${LOG_DIR}\/$(printf "%04d.json" "$(basename "$i" .json)")"
expand -t1 "$i" > "${moved_file}"
json_size_after=$(stat -c%s "${moved_file}")
echo "$(date) - Moved file ${i} with size before: ${json_size_before} and after: ${json_size_after}"
rm "$i"
done
rm -rf "${JSON_DIR}"

Loading…
Cancel
Save