rpc: logging for bytestream listener

This commit is contained in:
Christian Schwarz
2017-05-12 20:26:48 +02:00
parent 53b3a940ec
commit feabf1abcd
2 changed files with 7 additions and 2 deletions

View File

@ -117,7 +117,7 @@ func doSink(c *cli.Context) (err error) {
PullMapping: findMapping(conf.PullACLs),
}
if err = rpc.ListenByteStreamRPC(sshByteStream, handler); err != nil {
if err = rpc.ListenByteStreamRPC(sshByteStream, handler, sinkLogger); err != nil {
//os.Exit(1)
err = cli.NewExitError(err, 1)
defaultLog.Printf("listenbytestreamerror: %#v\n", err)