openci: Log eventBody to console before publishing 21/76321/2
authorFatih Degirmenci <fdegir@gmail.com>
Fri, 21 Sep 2018 07:47:10 +0000 (09:47 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Fri, 21 Sep 2018 07:49:52 +0000 (09:49 +0200)
It is necessary to log the eventBody to console before we attempt
to publish it since it is not possible to see the event body in
case if the publisher errors out due to invalid JSON.

Change-Id: I1d1883b26d5b74c8cde61dfb8b5be321d4bd781b
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
jjb/openci/create-ape.sh

index c54e0ef7e7feb4c4974978ee8b2e40e19599a75e..5bd3a0676fcc0ded0e60d28a65110b86de90d135 100755 (executable)
@@ -37,11 +37,11 @@ cat <<EOF > ./json_body.txt
 }
 EOF
 
-python openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt
-
 echo "Constructed $PUBLISH_EVENT_TYPE"
 echo "--------------------------------------------"
 cat  ./json_body.txt
 echo "--------------------------------------------"
 
+python openci_publish -H 129.192.69.55 -U ${ACTIVEMQ_USER} -p ${ACTIVEMQ_PASSWORD} -n openci.prototype -B ./json_body.txt
+
 deactivate