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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user