@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlineapps/service-wrapper",
3
- "version": "2.1.94",
3
+ "version": "2.1.95",
4
4
  "description": "Thin orchestration layer for microservices - delegates all infrastructure concerns to specialized connectors",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -837,13 +837,7 @@ class ServiceWrapper {
837
837
  );
838
838
  }
839
839
 
840
- // FAIL-FAST: logger must be initialized
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