log hash ref snippet