add debug flag to server

main
Ben Grewell 3 years ago
parent b680d5a133
commit 4b764206bb

@ -5,7 +5,6 @@
</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/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/server.go" beforeDir="false" afterPath="$PROJECT_DIR$/server.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" />

@ -161,11 +161,11 @@ func (s *Server) Start() (err error) {
} }
s.Running = true s.Running = true
go func() { go func() {
ds := DebugScanner{Silent: s.Debug} ds := DebugScanner{Silent: !s.Debug}
ds.Scan(s.outputStream) ds.Scan(s.outputStream)
}() }()
go func() { go func() {
ds := DebugScanner{Silent: s.Debug} ds := DebugScanner{Silent: !s.Debug}
ds.Scan(s.errorStream) ds.Scan(s.errorStream)
}() }()
go func() { go func() {

Loading…
Cancel
Save