comex gold logs slightly loss on day, up 0.5% on week