Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add patch for perf logger #351

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions patch/perf-logger.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/lib/aptible/cli/agent.rb b/lib/aptible/cli/agent.rb
index fd16382..c68bc73 100644
--- a/lib/aptible/cli/agent.rb
+++ b/lib/aptible/cli/agent.rb
@@ -1,5 +1,6 @@
require 'base64'
require 'uri'
+require 'logger'

require 'aptible/auth'
require 'thor'
@@ -80,7 +81,10 @@ module Aptible

def initialize(*)
nag_toolbelt unless toolbelt?
- Aptible::Resource.configure { |conf| conf.user_agent = version_string }
+ Aptible::Resource.configure do |conf|
+ conf.user_agent = version_string
+ conf.logger.tap { |l| l.level = Logger::INFO }
+ end
warn_sso_enforcement
super
end