Add error log on SSL send if debug flag set