Skip to content

Commit 8c5f01f

Browse files
authored
Merge pull request #4 from riltech/fix/process_logging
2 parents c9ca4cb + cf5ff21 commit 8c5f01f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func NewStream(
5959
logrus.Error(err)
6060
return nil, ""
6161
}
62-
process := NewProcess(keepFiles, audio, loggingOpts)
62+
process := NewProcess(keepFiles, audio)
6363
cmd := process.Spawn(path, URI)
6464

6565
// Create nil pointer in case logging is not enabled

process.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ type ProcessLoggingOpts struct {
2323

2424
// Process is the main type for creating new processes
2525
type Process struct {
26-
keepFiles bool
27-
audio bool
28-
loggingOpts ProcessLoggingOpts
26+
keepFiles bool
27+
audio bool
2928
}
3029

3130
// Type check
@@ -35,9 +34,8 @@ var _ IProcess = (*Process)(nil)
3534
func NewProcess(
3635
keepFiles bool,
3736
audio bool,
38-
loggingOpts ProcessLoggingOpts,
3937
) *Process {
40-
return &Process{keepFiles, audio, loggingOpts}
38+
return &Process{keepFiles, audio}
4139
}
4240

4341
// getHLSFlags are for getting the flags based on the config context

0 commit comments

Comments
 (0)