fix to periodically update logs

Signed-off-by: Zarrar Shehzad <czarrar@gmail.com>