removed debug code
changed post_type for log entries