fix error in logging event exception insertion script