Fix bug: in embed mode should also add log