Skip to content

Commit 68b2bd5

Browse files
committed
Revert "[TEMP] always log"
This reverts commit 89e8680.
1 parent 32a2b6b commit 68b2bd5

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

arduino/cli/commander.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type commander struct {
4343
// It directly imports the golang packages of the arduino-cli.
4444
func NewCommander() (arduino.Commander, error) {
4545
// Discard arduino-cli log info messages
46-
// logrus.SetLevel(logrus.PanicLevel)
46+
logrus.SetLevel(logrus.PanicLevel)
4747
// Initialize arduino-cli configuration
4848
configuration.Settings = configuration.Init(configuration.FindConfigFileInArgsOrWorkingDirectory(os.Args))
4949
// Create arduino-cli instance, needed to execute arduino-cli commands
@@ -62,7 +62,7 @@ func NewCommander() (arduino.Commander, error) {
6262
}
6363

6464
// Re-enable info level log
65-
// logrus.SetLevel(logrus.InfoLevel)
65+
logrus.SetLevel(logrus.InfoLevel)
6666
cmd := &commander{inst}
6767
return cmd, nil
6868
}

cli/cli.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ func parseFormatString(arg string) (feedback.OutputFormat, bool) {
7575
func preRun(cmd *cobra.Command, args []string) {
7676
logrus.SetOutput(ioutil.Discard)
7777
// enable log only if verbose flag is passed
78-
// if cliFlags.verbose {
79-
logrus.SetLevel(logrus.InfoLevel)
80-
logrus.SetOutput(os.Stdout)
81-
// }
78+
if cliFlags.verbose {
79+
logrus.SetLevel(logrus.InfoLevel)
80+
logrus.SetOutput(os.Stdout)
81+
}
8282

8383
// normalize the format strings
8484
cliFlags.outputFormat = strings.ToLower(cliFlags.outputFormat)

command/device/create.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ func Create(params *CreateParams) (*DeviceInfo, error) {
4444
}
4545

4646
ports, err := comm.BoardList()
47-
fmt.Println("found ports: ", ports)
4847
if err != nil {
4948
return nil, err
5049
}

0 commit comments

Comments
 (0)