Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nnamtug committed May 23, 2024
1 parent c8a8cfe commit a2f07ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion publisher/auto_git2staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ do

### upload
tmpfile=$(mktemp)
resp=$(curl -s -w "%{http_code}" -o $tmpfile -X POST -H 'Content-Type: text/turtle' -H 'Accept: application/json' -G --data-urlencode "graph=${graph}" -T ${ttl} ${url})
resp=$(curl -s -w "%{http_code}" -o $tmpfile --trace $tmpfile-trace -X POST -H 'Content-Type: text/turtle' -H 'Accept: application/json' -G --data-urlencode "graph=${graph}" -T ${ttl} ${url})
checkCurlCall 204 $resp $tmpfile

done
Expand Down
7 changes: 6 additions & 1 deletion publisher/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,15 @@ function checkCurlCall {
then
cat $tmpfile
rm $tmpfile
if [ -f $tmpfile-trace ];
then
cat $tmpfile-trace
rm $tmpfile-trace
fi
echo "FAILED curl call: expected http_code $expectedCode, but was $http_code"
exit 3
fi
rm $tmpfile
rm -f $tmpfile $tmpfile-trace
}


Expand Down

0 comments on commit a2f07ca

Please sign in to comment.