issue #996 - removed the debugs of support

This commit is contained in:
Daniel Camargo 2013-04-05 13:31:37 -03:00
parent d4d0400f56
commit 0c8fd3383e

View File

@ -13,42 +13,13 @@ class Crunchbutton_Support extends Cana_Table {
$support = $this;
Log::debug([
'action' => 'BEFORE cana::timeout',
'support_id' => $support->id_support,
'support_name' => $support->name,
'support_phone' => $support->phone,
'support_message' => $support->message,
'method' => '$support->notify()',
'type' => 'support'
]);
c::timeout(function() use($support) {
$support->notify();
}, 1000); // 1 second
Log::debug([
'action' => 'AFTER cana::timeout',
'support_id' => $support->id_support,
'support_name' => $support->name,
'support_phone' => $support->phone,
'support_message' => $support->message,
'type' => 'support'
]);
}
public function notify() {
Log::debug([
'action' => 'INSIDE notify cana::timeout',
'support_id' => $this->id_support,
'support_name' => $this->name,
'support_phone' => $this->phone,
'support_message' => $this->message,
'method' => '$support->notify()',
'type' => 'support'
]);
$env = c::env() == 'live' ? 'live' : 'dev';
$twilio = new Twilio(c::config()->twilio->{$env}->sid, c::config()->twilio->{$env}->token);