@onlineapps/service-wrapper 2.3.6 → 2.3.7
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 +6 -2
package/package.json
CHANGED
package/src/ServiceWrapper.js
CHANGED
|
@@ -1978,12 +1978,15 @@ class ServiceWrapper {
|
|
|
1978
1978
|
const serviceVersion = this.config.service?.version;
|
|
1979
1979
|
const serviceUrl = this.config.service?.url;
|
|
1980
1980
|
|
|
1981
|
+
// Validation runs in FÁZE 0.2 (before monitoring init in FÁZE 0.5+).
|
|
1982
|
+
// console is the correct bootstrap logger at this stage.
|
|
1983
|
+
const validationLogger = this.logger || console;
|
|
1981
1984
|
const orchestrator = this._injectedValidationOrchestrator || new ValidationOrchestrator({
|
|
1982
1985
|
serviceRoot: this.serviceRoot,
|
|
1983
1986
|
serviceName,
|
|
1984
1987
|
serviceVersion,
|
|
1985
1988
|
serviceUrl,
|
|
1986
|
-
logger:
|
|
1989
|
+
logger: validationLogger
|
|
1987
1990
|
});
|
|
1988
1991
|
|
|
1989
1992
|
const result = await orchestrator.validate();
|
|
@@ -2224,12 +2227,13 @@ class ServiceWrapper {
|
|
|
2224
2227
|
|
|
2225
2228
|
this.logger?.info('[ServiceWrapper] Checking validation proof...');
|
|
2226
2229
|
|
|
2230
|
+
const revalidationLogger = this.logger || console;
|
|
2227
2231
|
const orchestrator = this._injectedValidationOrchestrator || new ValidationOrchestrator({
|
|
2228
2232
|
serviceRoot: this.serviceRoot,
|
|
2229
2233
|
serviceName,
|
|
2230
2234
|
serviceVersion,
|
|
2231
2235
|
serviceUrl,
|
|
2232
|
-
logger:
|
|
2236
|
+
logger: revalidationLogger
|
|
2233
2237
|
});
|
|
2234
2238
|
|
|
2235
2239
|
// Startup retry loop with fast backoff
|