fix: 💡 Update log to warn (#1454)

Update measurement service log to warn

✅ Closes: #1451
This commit is contained in:
Igor Octaviano authored and GitHub committed 2020-02-20 21:41:01 -05:00
1 parent 4bbf24b250
commit 509a7b7e57
2 files changed
+2 -2

No files matched your search

@@ -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', () => {