Migration: log SQL on exception when inserting observations