quiet some unnecessary log noise
This commit is contained in:
parent
95f3681db8
commit
73a020b239
2
main.go
2
main.go
@ -402,7 +402,6 @@ func doorHandler(ctx context.Context, c net.Conn, w *gaio.Watcher, menuwg *sync.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if l > 0 {
|
if l > 0 {
|
||||||
log.Printf("wrote %d bytes to cmd stdin: %v\n", l, string(result.Buffer[:result.Size]))
|
|
||||||
waitingForInput = false
|
waitingForInput = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -436,7 +435,6 @@ func doorHandler(ctx context.Context, c net.Conn, w *gaio.Watcher, menuwg *sync.
|
|||||||
}
|
}
|
||||||
if l > 0 {
|
if l > 0 {
|
||||||
w.Write(ctx, c, outBuf[:l])
|
w.Write(ctx, c, outBuf[:l])
|
||||||
log.Printf("wrote %d bytes to watcher: %v\n", l, string(outBuf[:l]))
|
|
||||||
if strings.Contains(string(outBuf[:l]), ">") { // TODO: abstract out prompt string as argument to doorHandler
|
if strings.Contains(string(outBuf[:l]), ">") { // TODO: abstract out prompt string as argument to doorHandler
|
||||||
// a prompt appeared!
|
// a prompt appeared!
|
||||||
waitingForInput = true
|
waitingForInput = true
|
||||||
|
Loading…
Reference in New Issue
Block a user