Log queries only in dev.