MCPcopy
hub / github.com/nestjs/nest / printLookingForProviderLog

Method printLookingForProviderLog

packages/core/injector/injector.ts:1255–1269  ·  view source on GitHub ↗
(
    token: InjectionToken,
    moduleRef: Module,
  )

Source from the content-addressed store, hash-verified

1253 }
1254
1255 private printLookingForProviderLog(
1256 token: InjectionToken,
1257 moduleRef: Module,
1258 ): void {
1259 if (!this.isDebugMode()) {
1260 return;
1261 }
1262 const tokenName = this.getTokenName(token);
1263 const moduleRefName = moduleRef?.metatype?.name ?? 'unknown';
1264 this.logger.log(
1265 `Looking for ${clc.cyanBright(tokenName)}${clc.green(
1266 ' in ',
1267 )}${clc.magentaBright(moduleRefName)}`,
1268 );
1269 }
1270
1271 private printFoundInModuleLog(
1272 token: InjectionToken,

Callers 2

Calls 3

isDebugModeMethod · 0.95
getTokenNameMethod · 0.95
logMethod · 0.65

Tested by

no test coverage detected