[BUGFIX] Avoid logging that is hanging the app