Add a better fix to flush the log messages
Add a better fix to flush the log messages

Change-Id: Iead2cee7ae2e2d184a147c0f3b0497759efc7025

advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/sota_client_cpp,advancedtelematic/aktualizr,advancedtelematic/sota_client_cpp