mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-01 16:03:55 +08:00
6fb284b786
* expose logs of Teleport child processes Configures Teleport child proceses to log with the exact same configuration as the parent process. Logs from child processes previously were essentially discarded. * Fix issues around os_log; Fix log spam from child process. * Address comments; Fix lint. * * Only write remote command failure errors to client tty * Don't try to write errors to unserviced os.Stderr/Stdout of child process * Don't connect networking stderr to parent process, just use logger * Don't log client-responsible shell errors, e.g. shell interrupt * Mention running teleport as root for common subprocess permission errors. * Pass io.Discard pipe to child process if a log writer is not available. * Fix tests with nil log writer. * Add default child logger for tests. * Fix lint. * default to discard writer for tests. * Write reexec errors to os.Stdout for parent process to digest. * Address comments. * Clean up child pipe copy logic. * Cleanup log config inheritance. * Address comments. * Revert whitespace change. * Fix typo. * Fix merge conflict. --------- Co-authored-by: joerger <bjoerger@goteleport.com>