Change summary
web.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Detailed changes
@@ -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 }
}