From 15656c58e7291cdef17c083b0d249776c6043448 Mon Sep 17 00:00:00 2001 From: Walt Howd Date: Sat, 11 Jan 2025 00:28:12 +0000 Subject: [PATCH] Print WPCLI output (both stdout/stderr) to wp-cron-runner stream --- remote/remote.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/remote/remote.go b/remote/remote.go index 4e81932..56fda12 100644 --- a/remote/remote.go +++ b/remote/remote.go @@ -912,6 +912,8 @@ func runWpCliCmdRemote(conn net.Conn, GUID string, rows uint16, cols uint16, wpC continue } + log.Printf("WP-CLI output: %s", string(buf[:read])) + atomic.AddInt64(&wpcli.BytesLogged, int64(read)) written, err = logFile.Write(buf[:read])