Permalink
Browse files

Merge pull request #9 from gorkunov/patch-1

Update vk_logger.rb
  • Loading branch information...
2 parents 7100fc8 + 786d973 commit ad02481fd86e8682b2f87038a15efd514a730b70 Andrew Zinenko committed Jun 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/vk-ruby/middleware/response/vk_logger.rb
@@ -11,7 +11,7 @@ class VK::MW::Response::VkLogger < Faraday::Response::Middleware
def initialize(app, logger = nil)
super(app)
- @logger = !logger.nil? || begin
+ @logger = logger || begin
require 'logger'
::Logger.new(STDOUT)
end
@@ -43,4 +43,4 @@ def on_complete(env)
end
end
-end
+end

0 comments on commit ad02481

Please sign in to comment.