lib/chronicle/etl/oauth_authorizer.rb in chronicle-etl-0.5.4 vs lib/chronicle/etl/oauth_authorizer.rb in chronicle-etl-0.5.5
- old
+ new
@@ -48,11 +48,10 @@
# Start up an authorization server and handle the oauth flow
def authorize!
associate_oauth_credentials
@server = load_server
spinner = TTY::Spinner.new(":spinner :title", format: :dots_2)
- Chronicle::ETL::Logger.attach_to_ui(spinner)
spinner.auto_spin
spinner.update(title: "Starting temporary authorization server on port #{@port}""")
server_thread = start_authorization_server(port: @port)
start_oauth_flow
@@ -61,10 +60,9 @@
sleep 0.1 while authorization_pending?(server_thread)
@server.quit!
server_thread.join
spinner.success("(#{'successful'.green})")
- Chronicle::ETL::Logger.detach_from_ui
# TODO: properly handle failed authorizations
raise Chronicle::ETL::AuthorizationError unless @server.latest_authorization
@authorization = @server.latest_authorization