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

Commit

Permalink
Rename Logger to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
hlovdal authored and adiazulay committed Jan 19, 2021
1 parent a5d4695 commit e4c13d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/arduino/arduino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as vscode from "vscode";

import * as constants from "../common/constants";
import * as util from "../common/util";
import * as Logger from "../logger/logger";
import * as logger from "../logger/logger";

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

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

Expand Down Expand Up @@ -382,7 +382,7 @@ export class ArduinoApp {
deviceContext = util.tryParseJSON(fs.readFileSync(configFilePath, "utf8"));
}
if (!deviceContext) {
Logger.notifyAndThrowUserError("arduinoFileError", new Error(constants.messages.ARDUINO_FILE_ERROR));
logger.notifyAndThrowUserError("arduinoFileError", new Error(constants.messages.ARDUINO_FILE_ERROR));
}

deviceContext.configurations = deviceContext.configurations || [];
Expand Down Expand Up @@ -799,7 +799,7 @@ export class ArduinoApp {
private getProgrammerString(): string {
const selectProgrammer = this.programmerManager.currentProgrammer;
if (!selectProgrammer) {
Logger.notifyUserError("getProgrammerString", new Error(constants.messages.NO_PROGRAMMMER_SELECTED));
logger.notifyUserError("getProgrammerString", new Error(constants.messages.NO_PROGRAMMMER_SELECTED));
return;
}
return selectProgrammer;
Expand All @@ -808,7 +808,7 @@ export class ArduinoApp {
private getBoardBuildString(): string {
const selectedBoard = this.boardManager.currentBoard;
if (!selectedBoard) {
Logger.notifyUserError("getBoardBuildString", new Error(constants.messages.NO_BOARD_SELECTED));
logger.notifyUserError("getBoardBuildString", new Error(constants.messages.NO_BOARD_SELECTED));
return;
}
return selectedBoard.getBuildConfig();
Expand Down

0 comments on commit e4c13d0

Please sign in to comment.