When send attachment function are used, the logger try to log the message.
In this scenario it will try to log a file as a general text, and so it will throw an exception.
Now we check instanceof CURLFile and then print only "File" string instead of CURLFile object.
When send attachment function are used, the logger try to log the message.
In this scenario it will try to log a file as a general text, and so it will throw an exception.
Now we check instanceof CURLFile and then print only "File" string instead of CURLFile object.