Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

Commit

Permalink
Support any version of appengine for logstat
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulsom committed Jul 4, 2017
1 parent 08eadce commit d3dc893
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion logstat.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
if [ ! -f /tmp/logs.txt ]; then
~/.gradle/appengine-sdk/appengine-java-sdk-1.9.1/bin/appcfg.sh request_logs build/exploded-app /tmp/logs.txt
APPENGINE_DIR=$(ls -1 /Users/rahul/.gradle/appengine-sdk | tail -1)
chmod u+x ~/.gradle/appengine-sdk/$APPENGINE_DIR/bin/appcfg.sh
chmod u+x ~/.gradle/appengine-sdk/$APPENGINE_DIR/bin/run_java.sh
~/.gradle/appengine-sdk/$APPENGINE_DIR/bin/appcfg.sh request_logs build/exploded-app /tmp/logs.txt
fi
cat /tmp/logs.txt \
| sed -e "s/.*GET//g" | sed -e "s/.*POST//g" \
Expand Down

0 comments on commit d3dc893

Please sign in to comment.