Fixed easy mistake in record_log()