Skip to content

Commit dd41b0c

Browse files
authored
Merge pull request ActiveState#3482 from ActiveState/DX-2892
Ignore log file for current process
2 parents 162fb93 + 05c344f commit dd41b0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/runners/export/log.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ func (l *Log) Run(params *LogParams) (rerr error) {
101101
}
102102

103103
func ignoreLogFile(logFile string) (bool, error) {
104+
if strings.EqualFold(filepath.Base(logFile), logging.FileName()) {
105+
return true, nil
106+
}
107+
104108
file, err := os.Open(logFile)
105109
if err != nil {
106110
return false, errs.Wrap(err, "failed to open log file")

0 commit comments

Comments
 (0)