@@ -7,13 +7,13 @@ import {
77 InvalidArgumentError ,
88 Option ,
99} from '@commander-js/extra-typings' ;
10- import type {
11- GatewayConfigContext ,
12- GatewayConfigProxy ,
13- GatewayConfigSubgraph ,
14- GatewayConfigSupergraph ,
15- GatewayGraphOSReportingOptions ,
16- GatewayHiveReportingOptions ,
10+ import {
11+ type GatewayConfigContext ,
12+ type GatewayConfigProxy ,
13+ type GatewayConfigSubgraph ,
14+ type GatewayConfigSupergraph ,
15+ type GatewayGraphOSReportingOptions ,
16+ type GatewayHiveReportingOptions ,
1717} from '@graphql-hive/gateway-runtime' ;
1818import type UpstashRedisCache from '@graphql-mesh/cache-upstash-redis' ;
1919import type { JWTAuthPluginOptions } from '@graphql-mesh/plugin-jwt-auth' ;
@@ -26,8 +26,8 @@ import type {
2626 MeshPubSub ,
2727 YamlConfig ,
2828} from '@graphql-mesh/types' ;
29- import { DefaultLogger } from '@graphql-mesh/utils' ;
3029import parseDuration from 'parse-duration' ;
30+ import { getDefaultLogger } from '../../runtime/src/getDefaultLogger' ;
3131import { addCommands } from './commands/index' ;
3232import { createDefaultConfigPaths } from './config' ;
3333import { getMaxConcurrency } from './getMaxConcurrency' ;
@@ -347,7 +347,7 @@ let cli = new Command()
347347
348348export async function run ( userCtx : Partial < CLIContext > ) {
349349 const ctx : CLIContext = {
350- log : userCtx . log || new DefaultLogger ( ) ,
350+ log : userCtx . log || getDefaultLogger ( ) ,
351351 productName : 'Hive Gateway' ,
352352 productDescription : 'Federated GraphQL Gateway' ,
353353 productPackageName : '@graphql-hive/gateway' ,
@@ -362,7 +362,7 @@ export async function run(userCtx: Partial<CLIContext>) {
362362 cli = cli . name ( binName ) . description ( productDescription ) . version ( version ) ;
363363
364364 if ( cluster . worker ?. id ) {
365- ctx . log = ctx . log . child ( `Worker # ${ cluster . worker . id } ` ) ;
365+ ctx . log = ctx . log . child ( { worker : cluster . worker . id } ) ;
366366 }
367367
368368 addCommands ( ctx , cli ) ;
0 commit comments