quiet some unnecessary log noise

This commit is contained in:
Sundog Jones 2021-04-18 13:34:08 -07:00
parent 95f3681db8
commit 73a020b239

View File

@ -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