logging for stmt init errors