@punks/backend-entity-manager 0.0.338 → 0.0.340
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/dist/cjs/index.js
CHANGED
|
@@ -1187,6 +1187,7 @@ class ServiceLocator {
|
|
|
1187
1187
|
constructor() {
|
|
1188
1188
|
this.services = {};
|
|
1189
1189
|
this.multipleServices = {};
|
|
1190
|
+
this.logger = backendCore.Log.getLogger("ServiceLocator");
|
|
1190
1191
|
}
|
|
1191
1192
|
all() {
|
|
1192
1193
|
return this.services;
|
|
@@ -1199,7 +1200,7 @@ class ServiceLocator {
|
|
|
1199
1200
|
this.multipleServices[serviceName] = {};
|
|
1200
1201
|
}
|
|
1201
1202
|
if (this.multipleServices[serviceName][instanceName]) {
|
|
1202
|
-
|
|
1203
|
+
this.logger.warn(`Service instance "${serviceName}" "${instanceName}" already registered in ServiceLocator`);
|
|
1203
1204
|
}
|
|
1204
1205
|
this.multipleServices[serviceName][instanceName] = service;
|
|
1205
1206
|
}
|