Skip to content

Commit 4f3c3db

Browse files
committed
Improved console errors output
1 parent 9e68386 commit 4f3c3db

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
@@ -451,7 +451,7 @@ export function FlightLogAnalyser(flightLog, canvas, analyserCanvas) {
451451
};
452452

453453
} catch (e) {
454-
console.log(`Failed to create analyser... error: ${e}`);
454+
console.error(`Failed to create analyser... error: ${e}`);
455455
}
456456

457457
this.clearImportedSpectrums = function() {

src/graph_spectrum_calc.js

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

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)