need fix struct log_entry