From 37edcd8c1b0143dee763dc8647cb601e2ef2de65 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 7 Apr 2026 10:47:20 -0500 Subject: [PATCH] More call logging --- web.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web.rb b/web.rb index 464a4e7bc38b1810db3ce34532f6aa0324c265ec..f04192db371cb6d993cd05f572491a90a25f015d 100644 --- a/web.rb +++ b/web.rb @@ -286,7 +286,7 @@ class Web < Roda log.info "Normal hangup, now end #{call_id}", loggable_params modify_call(call_id) { |call| call.state = "completed" } elsif !outbound_leg - log.debug "Inbound disconnected", loggable_params + log.info "Inbound disconnected", loggable_params elsif params["cause"] == "error" && params["tries"].to_i < 15 log.info "2nd leg error, retry", loggable_params customer_repo( @@ -300,7 +300,7 @@ class Web < Roda }.catch(&log.method(:error)) } else - log.debug "Go to voicemail", loggable_params + log.info "Go to voicemail", loggable_params modify_call(call_id) do |call| call.redirect_url = url inbound_calls_path(:voicemail) end @@ -419,6 +419,7 @@ class Web < Roda ).then { |call| next EMPromise.reject(:voicemail) unless call + log.info "Started second leg from #{params['callId']}", call outbound_transfers[params["callId"]] = call render :ring, locals: { duration: 300 } }