@omnigraph/grpc 0.2.3 → 0.2.4-alpha-20250212143840-31f05e0058c8a194977f210671de19e8e0e43599
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/grpcLoaderHelper.js
CHANGED
|
@@ -57,7 +57,7 @@ class GrpcLoaderHelper extends disposablestack_1.DisposableStack {
|
|
|
57
57
|
const directives = [];
|
|
58
58
|
const roots = [];
|
|
59
59
|
for (const { name: rootJsonName, rootJson } of descriptorSets) {
|
|
60
|
-
const rootLogger = this.logger.child(rootJsonName);
|
|
60
|
+
const rootLogger = this.logger.child({ root: rootJsonName });
|
|
61
61
|
this.logger.debug(`Building the schema structure based on the root object`);
|
|
62
62
|
this.visit({
|
|
63
63
|
nested: rootJson,
|
|
@@ -197,7 +197,7 @@ class GrpcLoaderHelper extends disposablestack_1.DisposableStack {
|
|
|
197
197
|
return Promise.all(rootPromises.map(async (root$, i) => {
|
|
198
198
|
const root = await root$;
|
|
199
199
|
const rootName = root.name || `Root${i}`;
|
|
200
|
-
const rootLogger = this.logger.child(rootName);
|
|
200
|
+
const rootLogger = this.logger.child({ root: rootName });
|
|
201
201
|
rootLogger.debug(`Resolving entire the root tree`);
|
|
202
202
|
root.resolveAll();
|
|
203
203
|
rootLogger.debug(`Creating artifacts from descriptor set and root`);
|
package/esm/grpcLoaderHelper.js
CHANGED
|
@@ -53,7 +53,7 @@ export class GrpcLoaderHelper extends DisposableStack {
|
|
|
53
53
|
const directives = [];
|
|
54
54
|
const roots = [];
|
|
55
55
|
for (const { name: rootJsonName, rootJson } of descriptorSets) {
|
|
56
|
-
const rootLogger = this.logger.child(rootJsonName);
|
|
56
|
+
const rootLogger = this.logger.child({ root: rootJsonName });
|
|
57
57
|
this.logger.debug(`Building the schema structure based on the root object`);
|
|
58
58
|
this.visit({
|
|
59
59
|
nested: rootJson,
|
|
@@ -193,7 +193,7 @@ export class GrpcLoaderHelper extends DisposableStack {
|
|
|
193
193
|
return Promise.all(rootPromises.map(async (root$, i) => {
|
|
194
194
|
const root = await root$;
|
|
195
195
|
const rootName = root.name || `Root${i}`;
|
|
196
|
-
const rootLogger = this.logger.child(rootName);
|
|
196
|
+
const rootLogger = this.logger.child({ root: rootName });
|
|
197
197
|
rootLogger.debug(`Resolving entire the root tree`);
|
|
198
198
|
root.resolveAll();
|
|
199
199
|
rootLogger.debug(`Creating artifacts from descriptor set and root`);
|