-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log error (stdout and stderr) on command failures (non-zero exits) for Managed Cloud SDK processes #991
Comments
This makes sense though I don't think it's diagnosed quite right. The problem is that CommandCaller doesn't save stderr into the exception. It should. Logging here we don't need to do. Including more information in the exception is the right approach. |
@elharo it does save error log into |
Although, the error should probably to be logged and/or surfaced by the consumer of this API instead. |
That's a decision for the dependent of this library to make. This library does not attempt to talk to end users. |
As described here, I'm no longer sure there is an issue for appengine-plugins-core to resolve. This library makes that information available downstream. It's up to the individual callers to make use of it. Perhaps this bug should be addressed in app-maven-pluign and cloud-code-intellij? |
Issue transferred from appengine-plugins-core to app-maven-plugin. I'll create a new one for app-gradle-plugin. |
Cross-commenting from the gradle issue; not planning to close the individual plugin ones. I think this should be resolved here in Yes, It would be easier if |
Currently, when command fails (such as
ManagedCloudSDK.isUpToDate()
) fails, there is no insight into detailed error message, even though, error message is captured inCommandExitException
.https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/master/src/main/java/com/google/cloud/tools/managedcloudsdk/ManagedCloudSdk.java#L162
Suggest that upon
CommandExitException
, log error with high priority and/or propagate to the wrapping Exception, or, use it as part of the message ofCommandExitException
The text was updated successfully, but these errors were encountered: