The logMessage can be very long. Probably only it's length could be important to why sendApplicationLog has failed. Stringify the error though.