Skip to content

Commit 0794de5

Browse files
committed
Improved console errors output
1 parent f6d135c commit 0794de5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/graph_spectrum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
459459
};
460460

461461
} catch (e) {
462-
console.log(`Failed to create analyser... error: ${e}`);
462+
console.error(`Failed to create analyser... error: ${e}`);
463463
}
464464

465465
this.clearImportedSpectrums = function() {

src/graph_spectrum_calc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,9 @@ GraphSpectrumCalc._getFlightSamplesFreqVsX = function(vsFieldNames, minValue = I
507507
if (minValue == Infinity) { // this should never happen
508508
minValue = 0;
509509
maxValue = 100;
510-
console.log("Invalid minimum value");
510+
console.warn("Invalid minimum value");
511511
} else {
512-
console.log("Maximum value %f smaller than minimum value %d", maxValue, minValue);
512+
console.warn("Maximum value %f smaller than minimum value %d", maxValue, minValue);
513513
minValue = 0;
514514
maxValue = 100;
515515
}

src/graph_spectrum_plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ GraphSpectrumPlot._drawFiltersAndMarkers = function (canvasCtx) {
10201020
}
10211021
offset++; // make some space!
10221022
} catch (e) {
1023-
console.log("Notch filter fieldName missing");
1023+
console.warn("Notch filter fieldName missing");
10241024
}
10251025

10261026
if (this._spectrumType === SPECTRUM_TYPE.FREQUENCY) {

0 commit comments

Comments
 (0)