Skip to content

Commit 6b0a185

Browse files
committed
Add debug output before printing result
1 parent 89b2c7d commit 6b0a185

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

frameworks/pinpoint-java/functions.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ function waitForStartup {
109109
fileName=$1
110110
textToWaitFor=$2
111111

112+
sync
113+
sleep 5
114+
112115
echo "Waiting for $fileName to contain $textToWaitFor"
113116
attempt=0
114117
while [ $attempt -le 150 ]; do
@@ -117,6 +120,7 @@ function waitForStartup {
117120
result=$(cat $fileName 2>&1)
118121
if grep -q "$textToWaitFor" <<< $result ; then
119122
echo "$fileName contains $textToWaitFor!"
123+
ls -lah $fileName
120124
echo "Result: $result"
121125
ls -lah $fileName
122126
break

0 commit comments

Comments
 (0)