Fix use of log when response encoding error
Fix use of log when response encoding error

ab/rest-client,crccw/rest-client,JIFFinc/rest-client,landylee1989/rest-client,guoyu07/rest-client,skv-headless/rest-client,jonkgrimes/rest-client,rest-client/rest-client,korczis/rest-client,maxprig/rest-client,voxik/rest-client,antonklava/rest-client,rayzhng/rest-client,keir-rex/rest-client,acrogenesis-lab/rest-client