summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorScott Moser <smoser@canonical.com>2009-09-25 17:11:24 +0200
committerSoren Hansen <soren@canonical.com>2009-09-25 17:11:24 +0200
commit2e5e426e406c4b72942020460993e5fb91dcb9b6 (patch)
treed8a0fbb75191a61a9414251346b58c04365fd839 /setup.py
parent2fd7a079c19ce42c7705e9e87bc5e807d45891b2 (diff)
downloadvyos-cloud-init-2e5e426e406c4b72942020460993e5fb91dcb9b6.tar.gz
vyos-cloud-init-2e5e426e406c4b72942020460993e5fb91dcb9b6.zip
replace multiple '| logger' in regenerate_ssh_host_keys with a single one
This is a speed improvement as previous would make a fork/subshell for each pipe. This will only make a single fork. I've also verified that each line in logger output will still get the 'ec2' prefix $ printf "%s\n%s\n" "hi world" "by world" | logger -s -t ec2 2>/dev/null $ tail -n 2 /var/log/messages Sep 24 19:06:10 ip-10-242-225-190 ec2: hi world Sep 24 19:06:10 ip-10-242-225-190 ec2: by world The other thing to note is that I redirected stderr of the regenerate_ssh_host_keys call to logger, so it will go to the logs also.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions