g_err = None
if stderr is not PIPE:
if stderr is None:
- stderr = logger.getChild(name).getChild('err')
+ stderr = logger.getChild(name).getChild('stderr')
g_err = gevent.spawn(copy_file_to, r.stderr, stderr)
r.stderr = stderr
else:
g_out = None
if stdout is not PIPE:
if stdout is None:
- stdout = logger.getChild(name).getChild('out')
+ stdout = logger.getChild(name).getChild('stdout')
g_out = gevent.spawn(copy_file_to, r.stdout, stdout)
r.stdout = stdout
else:
log_host = fudge.Fake('log_host')
logger.expects('getChild').with_args('HOST').returns(log_host)
log_err = fudge.Fake('log_err')
- log_host.expects('getChild').with_args('err').returns(log_err)
+ log_host.expects('getChild').with_args('stderr').returns(log_err)
log_err.expects('log').with_args(logging.INFO, 'bad')
log_out = fudge.Fake('log_out')
- log_host.expects('getChild').with_args('out').returns(log_out)
+ log_host.expects('getChild').with_args('stdout').returns(log_out)
log_out.expects('log').with_args(logging.INFO, 'foo')
log_out.expects('log').with_args(logging.INFO, 'bar')
channel = fudge.Fake('channel')
log_host = fudge.Fake('log_host')
logger.expects('getChild').with_args('HOST').returns(log_host)
log_err = fudge.Fake('log_err')
- log_host.expects('getChild').with_args('err').returns(log_err)
+ log_host.expects('getChild').with_args('stderr').returns(log_err)
log_err.expects('log').with_args(logging.INFO, 'bad')
channel = fudge.Fake('channel')
out.has_attr(channel=channel)