diff --git a/CHANGELOG.md b/CHANGELOG.md index 52e6c76090..1a64880b24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## Upcoming - `apollo` - - + - Add debugging logs to `apollo client:push` and `apollo service:push` [# 1273](https://github.com/apollographql/apollo-tooling/pull/1273) - `apollo-codegen-core` - - `apollo-codegen-flow` diff --git a/packages/apollo/src/commands/client/push.ts b/packages/apollo/src/commands/client/push.ts index a896da3070..4e6f42a727 100644 --- a/packages/apollo/src/commands/client/push.ts +++ b/packages/apollo/src/commands/client/push.ts @@ -43,6 +43,11 @@ export default class ServicePush extends ClientCommand { operations: operationManifest, manifestVersion: 2 }; + const { operations: _, ...restVariables } = variables; + this.debug("Variables sent to Engine:"); + this.debug(restVariables); + this.debug("Operations sent to Engine:"); + this.debug(operations); await project.engine.registerOperations(variables); diff --git a/packages/apollo/src/commands/service/push.ts b/packages/apollo/src/commands/service/push.ts index ccaa9b57f0..462125e799 100644 --- a/packages/apollo/src/commands/service/push.ts +++ b/packages/apollo/src/commands/service/push.ts @@ -134,6 +134,8 @@ export default class ServicePush extends ProjectCommand { tag: response.tag ? response.tag.tag : null, code: response.code }; + this.debug("Result received from Engine:"); + this.debug(result); } } }