rework debug/stdout flags

main
Ben Grewell 3 years ago
parent c596fe5a0e
commit 6ac9e0775f

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

@ -500,10 +500,10 @@ func (c *Client) Start() (err error) {
} }
c.Running = true c.Running = true
go func() { //go func() {
ds := DebugScanner{Silent: !c.StdOut} // ds := DebugScanner{Silent: !c.StdOut}
ds.Scan(c.outputStream) // ds.Scan(c.outputStream)
}() //}()
go func() { go func() {
ds := DebugScanner{Silent: !c.Debug} ds := DebugScanner{Silent: !c.Debug}
ds.Scan(c.errorStream) ds.Scan(c.errorStream)

Loading…
Cancel
Save