Skip to content

Commit

Permalink
Add log for gateway load
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Oct 17, 2019
1 parent 286fa3b commit 91a4e89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/apollo-gateway/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ export class ApolloGateway implements GraphQLService {

public async load(options?: { engine?: GraphQLServiceEngineConfig }) {
await this.updateComposition(options);
const graphId = options && options.engine && options.engine.graphId;
this.logger.info(`Gateway loaded schema${graphId && ` for service ${graphId}`}.`)
if (this.experimental_pollInterval) {
setInterval(
() => this.updateComposition(options),
Expand Down

0 comments on commit 91a4e89

Please sign in to comment.