Skip to content

Commit 1a08309

Browse files
authored
Properly have .log file extension for temp log files (#315)
1 parent 007ed6d commit 1a08309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/campaigns/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ type TaskLogger struct {
7070
func newTaskLogger(task *Task, keep bool) (*TaskLogger, error) {
7171
prefix := "changeset-" + task.Repository.Slug()
7272

73-
f, err := ioutil.TempFile(tempDirPrefix, prefix+".log")
73+
f, err := ioutil.TempFile(tempDirPrefix, prefix+".*.log")
7474
if err != nil {
7575
return nil, errors.Wrapf(err, "creating temporary file with prefix %q", prefix)
7676
}

0 commit comments

Comments
 (0)