Skip to content

Commit 6509c8e

Browse files
Debug log before the call out to Engine (#1245)
1 parent 8c161a8 commit 6509c8e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • packages/apollo/src/commands/service

packages/apollo/src/commands/service/push.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export default class ServicePush extends ProjectCommand {
4444
gitContext
4545
};
4646

47+
const { schema: _, ...restVariables } = variables;
48+
this.debug("Variables sent to Engine:");
49+
this.debug(restVariables);
50+
this.debug("SDL of introspection sent to Engine:");
51+
this.debug(printSchema(schema));
52+
4753
const response = await project.engine.uploadSchema(variables);
4854
if (response) {
4955
result = {
@@ -53,12 +59,6 @@ export default class ServicePush extends ProjectCommand {
5359
code: response.code
5460
};
5561
}
56-
57-
const { schema: _, ...restVariables } = variables;
58-
this.debug("Variables sent to Engine:");
59-
this.debug(restVariables);
60-
this.debug("SDL of introspection sent to Engine:");
61-
this.debug(printSchema(schema));
6262
}
6363
}
6464
]);

0 commit comments

Comments
 (0)