]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: flush stdout on watch print
authorSage Weil <sage@inktank.com>
Wed, 12 Jun 2013 20:59:37 +0000 (13:59 -0700)
committerSage Weil <sage@inktank.com>
Wed, 12 Jun 2013 21:00:04 +0000 (14:00 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/ceph.in

index 9b048597e18d8517aa6965d4b00287c1fa7a2e85..01dd908ad98acce582a695ce7e3666b76cd62d38 100755 (executable)
@@ -1417,6 +1417,7 @@ def main():
         # an awfully simple callback
         def watch_cb(arg, line, who, stamp_sec, stamp_nsec, seq, level, msg):
             print line
+           sys.stdout.flush()
 
         # first do a ceph status
         ret, outbuf, outs = json_command(prefix='status')