issue #996 - removed the debugs of support
This commit is contained in:
parent
d4d0400f56
commit
0c8fd3383e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user