MP1-4155: moved logging to separate thread, now logging should not block executing of code