Adding check on log service

This commit is contained in:
aiday-mar
2022-08-26 09:29:03 +02:00
parent 084179a026
commit dbbd79d333
@@ -75,7 +75,7 @@ class FeatureDebounceInformation implements IFeatureDebounceInformation {
this._cache.set(key, avg);
}
const newValue = clamp(avg.update(value), this._min, this._max);
if (!matchesScheme(model.uri, 'output')) {
if (!matchesScheme(model.uri, 'output') && this._logService) {
this._logService.trace(`[DEBOUNCE: ${this._name}] for ${model.uri.toString()} is ${newValue}ms`);
}
return newValue;