fix: 💡 Update log to warn (#1454)

Update measurement service log to warn

 Closes: #1451
This commit is contained in:
Igor Octaviano 2020-02-20 21:41:01 -05:00 committed by GitHub
parent 4bbf24b250
commit 509a7b7e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

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