Skip to content

Commit

Permalink
#7 more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 17, 2024
1 parent 78c7813 commit cf3378e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/octo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ def octo
$global[:octo] ||= begin
if $options.testing.nil?
o = Octokit::Client.new
unless $options.github_token.nil?
if $options.github_token.nil?
$loog.warn('Accessing GitHub API without a token!')
else
token = $options.github_token
o = Octokit::Client.new(access_token: token)
$loog.info("Accessing GitHub with a token (#{token.length} chars)")
$loog.info("Accessing GitHub API with a token (#{token.length} chars)")
end
o = Obk.new(o, pause: 500)
o = Obk.new(o, pause: 1000)
else
o = FakeOctokit.new
end
Expand Down

0 comments on commit cf3378e

Please sign in to comment.