fix: 💡 Update log to warn (#1454)
Update measurement service log to warn ✅ Closes: #1451
This commit is contained in:
parent
4bbf24b250
commit
509a7b7e57
@ -271,7 +271,7 @@ class MeasurementService {
|
||||
/* Assign measurement source instance */
|
||||
measurement.source = source;
|
||||
} catch (error) {
|
||||
log.error(`Failed to map '${sourceInfo}' measurement for definition ${definition}:`, error.message);
|
||||
log.warn(`Failed to map '${sourceInfo}' measurement for definition ${definition}:`, error.message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -262,7 +262,7 @@ describe('MeasurementService.js', () => {
|
||||
|
||||
source.addOrUpdate(definition, measurement);
|
||||
|
||||
expect(log.error.mock.calls.length).toBe(1);
|
||||
expect(log.warn.mock.calls.length).toBe(1);
|
||||
});
|
||||
|
||||
it('adds new measurement with custom id', () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user