Skip to content

Commit 749ab91

Browse files
committed
Append to logs instead of overwriting
1 parent 91241a3 commit 749ab91

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Diff for: go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ go 1.12
55
replace github.com/arduino/arduino-cli => ../arduino-cli
66

77
require (
8-
github.com/arduino/arduino-cli v0.0.0-20201118111649-5edef82c60fb
9-
github.com/arduino/go-paths-helper v1.3.2
8+
github.com/arduino/arduino-cli v0.0.0-20201201130510-05ce1509a4f1
9+
github.com/arduino/go-paths-helper v1.3.3
1010
github.com/arduino/go-properties-orderedmap v1.4.0
1111
github.com/pkg/errors v0.9.1
1212
github.com/sourcegraph/jsonrpc2 v0.0.0-20200429184054-15c2290dcb37

Diff for: go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ github.com/arduino/go-paths-helper v1.0.1/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3
1414
github.com/arduino/go-paths-helper v1.2.0/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3v5YYu35Yb+w31Ck=
1515
github.com/arduino/go-paths-helper v1.3.2 h1:5U9TSKQODiwSVgTxskC0PNl0l0Vf40GUlp99Zy2SK8w=
1616
github.com/arduino/go-paths-helper v1.3.2/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3v5YYu35Yb+w31Ck=
17+
github.com/arduino/go-paths-helper v1.3.3 h1:r51Mix4GkYqiaF9IuRTtRE3Y/WFA0C47WwG/VZAkbcI=
18+
github.com/arduino/go-paths-helper v1.3.3/go.mod h1:HpxtKph+g238EJHq4geEPv9p+gl3v5YYu35Yb+w31Ck=
1719
github.com/arduino/go-properties-orderedmap v1.3.0/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=
1820
github.com/arduino/go-properties-orderedmap v1.4.0 h1:YEbbzPqm1gXWDM/Jaq8tlvmh09z2qeHPJTUw9/VA4Dk=
1921
github.com/arduino/go-properties-orderedmap v1.4.0/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=

Diff for: streams/dumper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func LogReadWriteCloserToFile(upstream io.ReadWriteCloser, file *os.File) io.Rea
3434
// OpenLogFileAs creates a log file in GlobalLogDirectory.
3535
func OpenLogFileAs(filename string) *os.File {
3636
path := GlobalLogDirectory.Join(filename)
37-
res, err := path.Create()
37+
res, err := path.Append()
3838
if err != nil {
3939
log.Fatalf("Error opening log file: %s", err)
4040
} else {

0 commit comments

Comments
 (0)