Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update vk_logger.rb #9

Merged
merged 1 commit into from

2 participants

@gorkunov

Allow passing external logger and fix bug with NoMethodError: undefined method `debug?' for true:TrueClass

@gorkunov gorkunov Update vk_logger.rb
Allow passing external logger and fix bug with ```NoMethodError: undefined method `debug?' for true:TrueClass```
786d973
@zinenko zinenko merged commit ad02481 into zinenko:master

1 check passed

Details default The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 9, 2013
  1. @gorkunov

    Update vk_logger.rb

    gorkunov authored
    Allow passing external logger and fix bug with ```NoMethodError: undefined method `debug?' for true:TrueClass```
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/vk-ruby/middleware/response/vk_logger.rb
View
4 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
Something went wrong with that request. Please try again.