Permalink
Browse files

Merge pull request #25 from ddrinka/768fbda5d7d830097de035e511ae0e065…

…6bf55bc

Fixed S3 request logging slowdown
  • Loading branch information...
2 parents 8a564c4 + 768fbda commit 6c76d7f230eba557102a45cd1941df45faad376e @trevorrowe trevorrowe committed Jan 4, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/aws/core/client_logging.rb
@@ -25,12 +25,14 @@ def log_client_request(name, options)
response = yield
end
- if options[:async]
- response.on_complete do
+ if config.logger
+ if options[:async]
+ response.on_complete do
+ log_client_request_on_success(name, options, response, time)
+ end
+ else
log_client_request_on_success(name, options, response, time)
end
- else
- log_client_request_on_success(name, options, response, time)
end
response
end

0 comments on commit 6c76d7f

Please sign in to comment.