some changes

This commit is contained in:
Scott Bell 2024-10-04 11:29:00 +02:00
parent f718ccdf4e
commit 58d6cdb574
2 changed files with 2 additions and 6 deletions

View File

@ -73,10 +73,6 @@ export default class TelemetryCollection extends EventEmitter {
this.isStrategyLatest = this.options.strategy === 'latest'; this.isStrategyLatest = this.options.strategy === 'latest';
this.dataOutsideTimeBounds = false; this.dataOutsideTimeBounds = false;
this.modeChanged = false; this.modeChanged = false;
console.debug(
`🫙 Created telemetry for ${this.domainObject.name} with bounds ${new Date(options.start).toISOString()} and ${new Date(options.end).toISOString()}`
);
} }
/** /**

View File

@ -108,9 +108,9 @@ export default class CompsManager extends EventEmitter {
} }
async load(telemetryOptions) { async load(telemetryOptions) {
if (!_.isEqual(telemetryOptions, this.#telemetryOptions) && this.#loaded) { if (!_.isEqual(telemetryOptions, this.#telemetryOptions)) {
console.debug( console.debug(
`😩 Reloading comps manager ${this.#domainObject.name} due to telemetry options change. New bounds are: ${new Date(telemetryOptions.start).toISOString()} to ${new Date(telemetryOptions.end).toISOString()}`, `😩 Reloading comps manager ${this.#domainObject.name} due to telemetry options change.`,
telemetryOptions telemetryOptions
); );
this.#destroy(); this.#destroy();