@onlineapps/service-wrapper 2.1.94 → 2.1.95
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/package.json +1 -1
- package/src/ServiceWrapper.js +2 -8
package/package.json
CHANGED
package/src/ServiceWrapper.js
CHANGED
|
@@ -837,13 +837,7 @@ class ServiceWrapper {
|
|
|
837
837
|
);
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
//
|
|
841
|
-
if (!this.logger) {
|
|
842
|
-
throw new Error(
|
|
843
|
-
`[ServiceWrapper] Missing required dependency - logger is not initialized.`
|
|
844
|
-
);
|
|
845
|
-
}
|
|
846
|
-
|
|
840
|
+
// Logger may not be initialized yet at this point - RegistryClient handles null gracefully
|
|
847
841
|
this.registryClient = new RegistryConnector.ServiceRegistryClient({
|
|
848
842
|
amqpUrl: mqUrl,
|
|
849
843
|
serviceName: serviceName,
|
|
@@ -851,7 +845,7 @@ class ServiceWrapper {
|
|
|
851
845
|
specificationEndpoint: specificationEndpoint,
|
|
852
846
|
registryQueue: 'registry.register', // Use correct queue name
|
|
853
847
|
registryUrl: registryUrl,
|
|
854
|
-
logger: this.logger,
|
|
848
|
+
logger: this.logger || console, // Use console as fallback if logger not yet initialized
|
|
855
849
|
validationProof: this.validationProof // Inject validation proof
|
|
856
850
|
});
|
|
857
851
|
|