log formatting
pick the right error line
improved error logging for failed insert requests