]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-daemon: do not screw up line splitting
authorSage Weil <sage@redhat.com>
Tue, 5 Nov 2019 16:36:30 +0000 (10:36 -0600)
committerSage Weil <sage@redhat.com>
Tue, 5 Nov 2019 18:11:06 +0000 (12:11 -0600)
commit83b072f3cc5255590d5aa096f784bc99d2409e49
treeadc273d9d7a1fbbbfd184ad31913229b28e2dc59
parente38eeb62c51e73264c5318d93eff8ff6cfce3dec
ceph-daemon: do not screw up line splitting

When we log stdout and stderr, we were artificially adding line splits
due to reading 1024 bytes at a time and assuming it was aligned with a
newline.

Fix by keeping partial lines buffered and only log them once they are
complete (or the call finishes).

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon