Why does "appcfg.py request_logs" not accept "java" as a valid runtime in app.yaml?

51 views
Skip to first unread message

Krishna Patel

unread,
Sep 18, 2011, 12:26:36 PM9/18/11
to google-a...@googlegroups.com
Is there a way for a Java app to call "appcfg.py request_logs"?

When I try to do so, I get this error which goes away if I kludge my app.yaml by changing the runtime value from 'Java' to 'Python':

appcfg.py request_logs --application=s~example --email=exa...@gmail.com --num_days=1 . C:\request_logs.txt
Host: appengine.google.com
Error parsing yaml file:
Unable to assign value 'java' to attribute 'runtime':
Value 'java' for runtime does not match expression '^go|python|python27$'
  in ".\app.yaml", line 2, column 10

But I don't want to have to remember to change the runtime value every time.

Is there a way to avoid this kludge and download request logs for my Java app? 

Jose Montes de Oca

unread,
Sep 20, 2011, 7:44:31 PM9/20/11
to google-a...@googlegroups.com
To download request logs for your java app use this command line instead:

/appengine-java-sdk/bin/appcfg.sh request_logs myapp/war mylogs.txt


Hope this helps!

Best,
Jose Montes de Oca
Reply all
Reply to author
Forward
0 new messages