mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
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:
parent
a1d4144b18
commit
0a0adb68ad
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user