add status and type in logs