Fix the case where logs aren't sent properly

The log buffer would be filled faster than the client side could read
it, this in turn would cause chars to be lost and the log to appear
wrong.

Change-Id: Id9045a1fcc2a9535ec858b3a9c338c3991694650
Signed-off-by: Saggi Mizrahi <smizrahi@readhat.com>