Change summary
lib/customer_fwd.rb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
Detailed changes
@@ -113,7 +113,13 @@ class CustomerFwd
cc.call_timeout = timeout.to_i
yield cc if block_given?
}
- BANDWIDTH_VOICE.create_call(account, body: request).data.call_id
+ log_call(account, request)
+ end
+
+ def log_call(account, request)
+ result = BANDWIDTH_VOICE.create_call(account, body: request)
+ log.info "Create Bandwidth Call", { request: request, result: result }
+ result.data.call_id
end
def as_json(*)