Skip to content

Commit

Permalink
fix: 💡 Update log to warn (#1454)
Browse files Browse the repository at this point in the history
Update measurement service log to warn

✅ Closes: #1451
  • Loading branch information
igoroctaviano authored Feb 21, 2020
1 parent 4bbf24b commit 509a7b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 509a7b7

Please sign in to comment.