ssh/tailssh: log when recording starts and finishes (#9294)

Updates tailscale/corp#14579

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
This commit is contained in:
Joe Tsai 2023-09-07 18:47:04 -07:00 committed by GitHub
parent a1d4144b18
commit 0a0adb68ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1088,6 +1088,7 @@ func (ss *sshSession) run() {
ss.Exit(1) ss.Exit(1)
return return
} }
ss.logf("startNewRecording: <nil>")
if rec != nil { if rec != nil {
defer rec.Close() defer rec.Close()
} }
@ -1658,6 +1659,7 @@ func (ss *sshSession) startNewRecording() (_ *recording, err error) {
err := <-errChan err := <-errChan
if err == nil { if err == nil {
// Success. // Success.
ss.logf("recording: finished uploading recording")
return return
} }
if onFailure != nil && onFailure.NotifyURL != "" && len(attempts) > 0 { if onFailure != nil && onFailure.NotifyURL != "" && len(attempts) > 0 {