How do we pass --log-http to gcloud when using Maven?

22 views
Skip to first unread message

Joshua Fox

unread,
Aug 14, 2017, 5:54:01 AM8/14/17
to google-a...@googlegroups.com, App Engine Flexible, Amir Rouzrokh
How do we pass --log-http to gcloud when using the Cloud appengine-maven-plugin (com.google.appengine:gcloud-maven-plugin)?

In an earlier question to the Google Group we asked about how we pass --verbosity=debug, and apparently the answer was that the Maven plugin does not support that.

If the Maven plugin does not support passing switches to gcloud, Is Google planning to add that  ASAP? It seems like very basic functionality for a Maven plugin whose whole job is to wrap gcloud.

Nicola Spreafico

unread,
Aug 14, 2017, 7:05:41 AM8/14/17
to Google App Engine, app-engin...@googlegroups.com, arou...@google.com
I used in the past this kind of method:

1) Staging the project with the maven plugin:
appengine:stage

2) Deploy the staged directory directly with gcloud
 
gcloud --quiet --log-http --verbosity debug app deploy "$staging_directory/app.yaml" --version $version --project $project

If you need to display http logs and verbosity debug for testing, you can use this method (and you can wrap both commands in a single script)
Reply all
Reply to author
Forward
0 new messages