]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Stop logging STDOUT and STDERR on every shell out
authorMatthew Treinish <mtreinish@kortar.org>
Mon, 24 Aug 2015 17:28:22 +0000 (13:28 -0400)
committerMatthew Treinish <mtreinish@kortar.org>
Mon, 24 Aug 2015 17:28:22 +0000 (13:28 -0400)
commit423392564e6c135be4cf6270659065b2c8b08b37
tree447e02a4a855620029072f6beada5e0ff3e33224
parent1c19e898c0199c33a0273eb906cf63075269234c
Stop logging STDOUT and STDERR on every shell out

Sometimes you can log too much. For example, logging a complete
iptables dump on every security group operation, OMG TMI. Doing this
during DSVM run results in a log file >7M compressed. To mitigate this
issue this commit switches the execute method to only log the command
and it's exit code on the success case. If there is a failure the
entire stdin, stdout and stderr are logged.

Change-Id: Iaf17297306dc752e666612033c805a528f078f2f
neutron/agent/linux/utils.py