Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit e4c13d0

Browse files
hlovdaladiazulay
authored andcommitted
Rename Logger to logger
1 parent a5d4695 commit e4c13d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/arduino/arduino.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as vscode from "vscode";
99

1010
import * as constants from "../common/constants";
1111
import * as util from "../common/util";
12-
import * as Logger from "../logger/logger";
12+
import * as logger from "../logger/logger";
1313

1414
import { DeviceContext } from "../deviceContext";
1515
import { IArduinoSettings } from "./arduinoSettings";
@@ -177,7 +177,7 @@ export class ArduinoApp {
177177
const outputPath = path.resolve(ArduinoWorkspace.rootPath, dc.output);
178178
const dirPath = path.dirname(outputPath);
179179
if (!util.directoryExistsSync(dirPath)) {
180-
Logger.notifyUserError("InvalidOutPutPath", new Error(constants.messages.INVALID_OUTPUT_PATH + outputPath));
180+
logger.notifyUserError("InvalidOutPutPath", new Error(constants.messages.INVALID_OUTPUT_PATH + outputPath));
181181
return;
182182
}
183183

@@ -237,7 +237,7 @@ export class ArduinoApp {
237237
const outputPath = path.resolve(ArduinoWorkspace.rootPath, output || dc.output);
238238
const dirPath = path.dirname(outputPath);
239239
if (!util.directoryExistsSync(dirPath)) {
240-
Logger.notifyUserError("InvalidOutPutPath", new Error(constants.messages.INVALID_OUTPUT_PATH + outputPath));
240+
logger.notifyUserError("InvalidOutPutPath", new Error(constants.messages.INVALID_OUTPUT_PATH + outputPath));
241241
return false;
242242
}
243243

@@ -382,7 +382,7 @@ export class ArduinoApp {
382382
deviceContext = util.tryParseJSON(fs.readFileSync(configFilePath, "utf8"));
383383
}
384384
if (!deviceContext) {
385-
Logger.notifyAndThrowUserError("arduinoFileError", new Error(constants.messages.ARDUINO_FILE_ERROR));
385+
logger.notifyAndThrowUserError("arduinoFileError", new Error(constants.messages.ARDUINO_FILE_ERROR));
386386
}
387387

388388
deviceContext.configurations = deviceContext.configurations || [];
@@ -799,7 +799,7 @@ export class ArduinoApp {
799799
private getProgrammerString(): string {
800800
const selectProgrammer = this.programmerManager.currentProgrammer;
801801
if (!selectProgrammer) {
802-
Logger.notifyUserError("getProgrammerString", new Error(constants.messages.NO_PROGRAMMMER_SELECTED));
802+
logger.notifyUserError("getProgrammerString", new Error(constants.messages.NO_PROGRAMMMER_SELECTED));
803803
return;
804804
}
805805
return selectProgrammer;
@@ -808,7 +808,7 @@ export class ArduinoApp {
808808
private getBoardBuildString(): string {
809809
const selectedBoard = this.boardManager.currentBoard;
810810
if (!selectedBoard) {
811-
Logger.notifyUserError("getBoardBuildString", new Error(constants.messages.NO_BOARD_SELECTED));
811+
logger.notifyUserError("getBoardBuildString", new Error(constants.messages.NO_BOARD_SELECTED));
812812
return;
813813
}
814814
return selectedBoard.getBuildConfig();

0 commit comments

Comments
 (0)