Show More
@@ -588,12 +588,19 b' def _runsshserver(ui, repo, fin, fout, e' | |||||
588 | state) |
|
588 | state) | |
589 |
|
589 | |||
590 | class sshserver(object): |
|
590 | class sshserver(object): | |
591 | def __init__(self, ui, repo): |
|
591 | def __init__(self, ui, repo, logfh=None): | |
592 | self._ui = ui |
|
592 | self._ui = ui | |
593 | self._repo = repo |
|
593 | self._repo = repo | |
594 | self._fin = ui.fin |
|
594 | self._fin = ui.fin | |
595 | self._fout = ui.fout |
|
595 | self._fout = ui.fout | |
596 |
|
596 | |||
|
597 | # Log write I/O to stdout and stderr if configured. | |||
|
598 | if logfh: | |||
|
599 | self._fout = util.makeloggingfileobject( | |||
|
600 | logfh, self._fout, 'o', logdata=True) | |||
|
601 | ui.ferr = util.makeloggingfileobject( | |||
|
602 | logfh, ui.ferr, 'e', logdata=True) | |||
|
603 | ||||
597 | hook.redirect(True) |
|
604 | hook.redirect(True) | |
598 | ui.fout = repo.ui.fout = ui.ferr |
|
605 | ui.fout = repo.ui.fout = ui.ferr | |
599 |
|
606 |
General Comments 0
You need to be logged in to leave comments.
Login now