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

go.mod

Lines changed: 2 additions & 2 deletions
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

go.sum

Lines changed: 2 additions & 0 deletions
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=

streams/dumper.go

Lines changed: 1 addition & 1 deletion
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)