build: apply_profile.code: log also to console