Fixed log message.
This commit is contained in:
parent
3a30bffbc0
commit
8cfd10e690
1 changed files with 2 additions and 2 deletions
|
@ -29,10 +29,10 @@ returns
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
if !response.success?
|
if !response.success?
|
||||||
Rails.logger.info "Can't fetch image for '#{data[:url]}' (maybe no avatar available), http code: #{response.code}"
|
Rails.logger.info "Can't fetch image for '#{email}' (maybe no avatar available), http code: #{response.code}"
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
Rails.logger.info "Fetched image for '#{data[:url]}', http code: #{response.code}"
|
Rails.logger.info "Fetched image for '#{email}', http code: #{response.code}"
|
||||||
mime_type = 'image/jpeg'
|
mime_type = 'image/jpeg'
|
||||||
{
|
{
|
||||||
content: response.body,
|
content: response.body,
|
||||||
|
|
Loading…
Reference in a new issue