cmd: support logging reads & writes from sshbytestream to a file.

This commit is contained in:
Christian Schwarz
2017-05-12 21:11:09 +02:00
parent 74719ad846
commit 6f84bf665d
3 changed files with 49 additions and 2 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ func doRun(c *cli.Context) error {
Repeats: true,
RunFunc: func(log jobrun.Logger) error {
log.Printf("doing pull: %v", pull)
return doPull(pull, log)
return doPull(pull, c, log)
},
}
@@ -183,7 +183,7 @@ func doRun(c *cli.Context) error {
return nil
}
func doPull(pull Pull, log jobrun.Logger) (err error) {
func doPull(pull Pull, c *cli.Context, log jobrun.Logger) (err error) {
if lt, ok := pull.From.Transport.(LocalTransport); ok {
lt.SetHandler(Handler{