rework debug/stdout flags

This commit is contained in:
Ben Grewell
2021-08-25 07:48:30 -07:00
parent c596fe5a0e
commit 6ac9e0775f
2 changed files with 4 additions and 7 deletions

3
.idea/workspace.xml generated
View File

@@ -5,10 +5,7 @@
</component>
<component name="ChangeListManager">
<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$/server.go" beforeDir="false" afterPath="$PROJECT_DIR$/server.go" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

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