add debug flag to client

main
Ben Grewell 3 years ago
parent 53175db755
commit 08168a8e51

@ -5,7 +5,8 @@
</component>
<component name="ChangeListManager">
<list default="true" id="fc2840de-29dc-4fca-8e0e-a283562f60ca" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controller.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/client.go" beforeDir="false" afterPath="$PROJECT_DIR$/client.go" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

@ -66,6 +66,7 @@ type Client struct {
Running bool `json:"running" yaml:"running" xml:"running"`
Done chan bool `json:"-" yaml:"-" xml:"-"`
Options *ClientOptions `json:"options" yaml:"options" xml:"options"`
Debug bool `json:"-" yaml:"-" xml:"-"`
exitCode *int
report *TestReport
outputStream io.ReadCloser
@ -497,14 +498,16 @@ func (c *Client) Start() (err error) {
return err
}
c.Running = true
//go func() {
// ds := DebugScanner{Silent: false}
// ds.Scan(c.outputStream)
//}()
//go func() {
// ds := DebugScanner{Silent: false}
// ds.Scan(c.errorStream)
//}()
if c.Debug {
go func() {
ds := DebugScanner{Silent: false}
ds.Scan(c.outputStream)
}()
go func() {
ds := DebugScanner{Silent: false}
ds.Scan(c.errorStream)
}()
}
go func() {
var reporter *Reporter
if c.live {

Loading…
Cancel
Save