summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWild Kat <wk@futureinquestion.net>2018-04-06 22:12:18 +0200
committerWild Kat <wk@futureinquestion.net>2018-04-06 22:12:18 +0200
commit331838fd9203dcf72e94ea218defc9a2115fabf6 (patch)
tree0c9ac3443f554eb4a2e45bb291fd46e74caf8453 /lib
parent265e7f55d7bf481757b12218e893231a7d6e092e (diff)
expose username in debug log
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/hook/githubrepo.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oxidized/hook/githubrepo.rb b/lib/oxidized/hook/githubrepo.rb
index 715438b..4cae4e6 100644
--- a/lib/oxidized/hook/githubrepo.rb
+++ b/lib/oxidized/hook/githubrepo.rb
@@ -54,13 +54,13 @@ class GithubRepo < Oxidized::Hook
end
if cfg.has_key?('password')
- log "Authenticating using username and password", :debug
+ log "Authenticating using username and password as '#{git_user}'", :debug
Rugged::Credentials::UserPassword.new(username: git_user, password: cfg.password)
elsif cfg.has_key?('publickey') && cfg.has_key?('privatekey')
- log "Authenticating using ssh keys", :debug
+ log "Authenticating using ssh keys as '#{git_user}'", :debug
Rugged::Credentials::SshKey.new(username: git_user, publickey: File.expand_path(cfg.publickey), privatekey: File.expand_path(cfg.privatekey), passphrase: ENV["OXIDIZED_SSH_PASSPHRASE"])
else
- log "Authenticating using ssh agent", :debug
+ log "Authenticating using ssh agent as '#{git_user}'", :debug
Rugged::Credentials::SshKeyFromAgent.new(username: git_user)
end
end